Skip to content

Commit 6f273cd

Browse files
committed
fix for new postfixes
1 parent ec88480 commit 6f273cd

File tree

4 files changed

+7581
-6
lines changed

4 files changed

+7581
-6
lines changed

dist/index.js

Lines changed: 7571 additions & 1 deletion
Large diffs are not rendered by default.

src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const generate = async ({
155155
useOptions,
156156
useUnionTypes,
157157
indent,
158-
postfix,
158+
postfixServices,
159159
serviceTemplate,
160160
exportClient,
161161
clientName
@@ -169,7 +169,7 @@ export const generate = async ({
169169
useOptions,
170170
useUnionTypes,
171171
indent,
172-
postfix,
172+
postfixServices,
173173
clientTemplate,
174174
clientName
175175
);
@@ -182,7 +182,8 @@ export const generate = async ({
182182
useOptions,
183183
useUnionTypes,
184184
indent,
185-
postfix,
185+
postfixServices,
186+
postfixModels,
186187
indexTemplate,
187188
exportCore,
188189
exportServices,

src/utils/writeClient.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ describe('writeClient', () => {
4747
true,
4848
true,
4949
true,
50+
true,
51+
true,
5052
Indent.SPACE_4,
5153
'Service',
5254
'AppClient'

src/utils/writeClientCustomTemplate/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export const writeClientIndexCustomTemplate = async (
2020
useOptions: boolean,
2121
useUnionTypes: boolean,
2222
indent: Indent,
23-
postfix: string,
23+
postfixServices: string,
24+
postfixModels: string,
2425
templatePath: string,
2526
exportCore: boolean,
2627
exportServices: boolean,
@@ -52,7 +53,8 @@ export const writeClientIndexCustomTemplate = async (
5253
exportModels,
5354
exportSchemas,
5455
useUnionTypes,
55-
postfix,
56+
postfixServices,
57+
postfixModels,
5658
clientName,
5759
server: client.server,
5860
version: client.version,

0 commit comments

Comments
 (0)