File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
} from './{{ fileName }} '
15
15
{{ /each }}
16
16
17
- export class SeamHttpEndpoints {
17
+ export class {{ className }} {
18
18
{{> route-class-methods }}
19
19
20
20
{{ #each endpoints }}
@@ -36,8 +36,8 @@ export class SeamHttpEndpoints {
36
36
{{ /each }}
37
37
}
38
38
39
- export type SeamHttpEndpointQueryPaths = {{ #each endpointReadPaths }} '{{ . }} ' {{ #unless @last }} | {{ /unless }}{{ /each }}
39
+ export type {{ typeNamePrefix }} QueryPaths = {{ #each endpointReadPaths }} '{{ . }} ' {{ #unless @last }} | {{ /unless }}{{ /each }}
40
40
41
- export type SeamHttpEndpointPaginatedQueryPaths = {{ #each endpointPaginatedPaths }} '{{ . }} ' {{ #unless @last }} | {{ /unless }}{{ /each }}
41
+ export type {{ typeNamePrefix }} PaginatedQueryPaths = {{ #each endpointPaginatedPaths }} '{{ . }} ' {{ #unless @last }} | {{ /unless }}{{ /each }}
42
42
43
- export type SeamHttpEndpointMutationPaths = {{ #each endpointWritePaths }} '{{ . }} ' {{ #unless @last }} | {{ /unless }}{{ /each }}
43
+ export type {{ typeNamePrefix }} MutationPaths = {{ #each endpointWritePaths }} '{{ . }} ' {{ #unless @last }} | {{ /unless }}{{ /each }}
Original file line number Diff line number Diff line change 9
9
10
10
export interface EndpointsLayoutContext {
11
11
className : string
12
+ typeNamePrefix : string
12
13
endpoints : EndpointLayoutContext [ ]
13
14
endpointReadPaths : string [ ]
14
15
endpointPaginatedPaths : string [ ]
@@ -28,6 +29,7 @@ export const setEndpointsLayoutContext = (
28
29
routes : Route [ ] ,
29
30
) : void => {
30
31
file . className = getClassName ( 'Endpoints' )
32
+ file . typeNamePrefix = getClassName ( 'Endpoint' )
31
33
file . skipClientSessionImport = true
32
34
file . endpoints = routes . flatMap ( ( route ) =>
33
35
route . endpoints . map ( ( endpoint ) =>
You can’t perform that action at this time.
0 commit comments