File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { {{{httpRequest}}} } from './core/{{{httpRequest}}}';
16
16
17
17
{{ #if services }}
18
18
{{ #each services }}
19
- import { {{{ name }}}{{{ @root.postfix }}} } from './services/{{{ name }}}{{{ @root.postfix }}} ';
19
+ import { {{{ name }}}{{{ @root.postfix }}} } from './services/{{{ name }}}{{{ @root.postfix }}} .service ';
20
20
{{ /each }}
21
21
{{ /if }}
22
22
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import type { Observable } from 'rxjs';
13
13
{{ /equals }}
14
14
{{ #if imports }}
15
15
{{ #each imports }}
16
- import type { {{{ this }}} } from '../models/{{{ this }}} ';
16
+ import type { {{{ this }}} } from '../models/{{{ this }}} .models ';
17
17
{{ /each }}
18
18
19
19
{{ /if }}
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ export type { OpenAPIConfig } from './core/OpenAPI';
18
18
19
19
{{ #each models }}
20
20
{{ #if @root.useUnionTypes }}
21
- export type { {{{ name }}} } from './models/{{{ name }}} ';
21
+ export type { {{{ name }}} } from './models/{{{ name }}} .models ';
22
22
{{ else if enum}}
23
- export { {{{ name }}} } from './models/{{{ name }}} ';
23
+ export { {{{ name }}} } from './models/{{{ name }}} .models ';
24
24
{{ else if enums}}
25
- export { {{{ name }}} } from './models/{{{ name }}} ';
25
+ export { {{{ name }}} } from './models/{{{ name }}} .models ';
26
26
{{ else }}
27
- export type { {{{ name }}} } from './models/{{{ name }}} ';
27
+ export type { {{{ name }}} } from './models/{{{ name }}} .models ';
28
28
{{ /if }}
29
29
{{ /each }}
30
30
{{ /if }}
@@ -41,7 +41,7 @@ export { ${{{name}}} } from './schemas/${{{name}}}';
41
41
{{ #if services }}
42
42
43
43
{{ #each services }}
44
- export { {{{ name }}}{{{ @root.postfix }}} } from './services/{{{ name }}}{{{ @root.postfix }}} ';
44
+ export { {{{ name }}}{{{ @root.postfix }}} } from './services/{{{ name }}}{{{ @root.postfix }}} .service ';
45
45
{{ /each }}
46
46
{{ /if }}
47
47
{{ /if }}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const writeClientServices = async (
33
33
clientName ?: string
34
34
) : Promise < void > => {
35
35
for ( const service of services ) {
36
- const file = resolve ( outputPath , `${ service . name } ${ postfix } .ts` ) ;
36
+ const file = resolve ( outputPath , `${ service . name } ${ postfix } .service. ts` ) ;
37
37
const templateResult = templates . exports . service ( {
38
38
...service ,
39
39
httpClient,
You can’t perform that action at this time.
0 commit comments