ts-openapi-codegen 2.1.0-beta.5 → 2.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/README.rus.md +3 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.js +63 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.js +62 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/prepareConfigData.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/prepareConfigData.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/prepareConfigData.test.js +20 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/removeDefaultConfigValues.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/removeDefaultConfigValues.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/removeDefaultConfigValues.test.js +35 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/validateAndMigrateConfigData.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/validateAndMigrateConfigData.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/validateAndMigrateConfigData.test.js +59 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/initOpenApiConfig/__tests__/init.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/__tests__/init.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/__tests__/init.test.js +30 -0
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.js +47 -0
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +2 -0
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +1 -0
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +2 -1
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.js +99 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/findSpecFiles.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/findSpecFiles.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/findSpecFiles.test.js +45 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.js +52 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +4 -0
- package/dist/cli/previewChanges/utils/__tests__/compareFiles.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/compareFiles.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/compareFiles.test.js +52 -0
- package/dist/cli/previewChanges/utils/__tests__/isDirectoryEmpty.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/isDirectoryEmpty.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/isDirectoryEmpty.test.js +43 -0
- package/dist/cli/previewChanges/utils/__tests__/readDirectoryRecursive.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/readDirectoryRecursive.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/readDirectoryRecursive.test.js +32 -0
- package/dist/cli/previewChanges/utils/__tests__/updateOutputPaths.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/updateOutputPaths.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/updateOutputPaths.test.js +68 -0
- package/dist/cli/schemas/__tests__/checkConfigAndUpdate.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/checkConfigAndUpdate.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/checkConfigAndUpdate.test.js +36 -0
- package/dist/cli/schemas/__tests__/generateOptionsSchema.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/generateOptionsSchema.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/generateOptionsSchema.test.js +59 -0
- package/dist/cli/schemas/__tests__/initOptionsSchema.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/initOptionsSchema.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/initOptionsSchema.test.js +43 -0
- package/dist/cli/schemas/__tests__/previewChangesSchema.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/previewChangesSchema.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/previewChangesSchema.test.js +31 -0
- package/dist/cli/schemas/init.d.ts +1 -0
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +1 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +2 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +2 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +2 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +2 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +2 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +11 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +2 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +1 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +1 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +1 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +8 -2
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +3 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +2 -0
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +6 -1
- package/dist/core/WriteClient.d.ts +3 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +3 -2
- package/dist/core/utils/GenerationCache.d.ts +18 -0
- package/dist/core/utils/GenerationCache.d.ts.map +1 -0
- package/dist/core/utils/GenerationCache.js +41 -0
- package/dist/core/utils/__tests__/GenerationCache.test.d.ts +2 -0
- package/dist/core/utils/__tests__/GenerationCache.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/GenerationCache.test.js +37 -0
- package/dist/core/utils/__tests__/loadDiffReport.test.d.ts +2 -0
- package/dist/core/utils/__tests__/loadDiffReport.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/loadDiffReport.test.js +97 -0
- package/dist/core/utils/__tests__/templateRendering.test.d.ts +2 -0
- package/dist/core/utils/__tests__/templateRendering.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/templateRendering.test.js +119 -0
- package/dist/core/utils/__tests__/writeClientServices.test.js +1 -0
- package/dist/core/utils/__tests__/writeFileIfChanged.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeFileIfChanged.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/writeFileIfChanged.test.js +30 -0
- package/dist/core/utils/writeClientCore.d.ts +2 -0
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +5 -4
- package/dist/core/utils/writeClientServices.d.ts +2 -0
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +2 -1
- package/dist/core/utils/writeFileIfChanged.d.ts +3 -0
- package/dist/core/utils/writeFileIfChanged.d.ts.map +1 -0
- package/dist/core/utils/writeFileIfChanged.js +22 -0
- package/dist/templatesCompiled/cli/customRequest.d.ts +6 -2
- package/dist/templatesCompiled/cli/customRequest.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequest.js +28 -8
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts +3 -0
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequestExecutor.js +28 -5
- package/dist/templatesCompiled/client/core/axios/request.d.ts +6 -2
- package/dist/templatesCompiled/client/core/axios/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +22 -2
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +5 -2
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +42 -12
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +2 -0
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +11 -3
- package/dist/templatesCompiled/client/core/fetch/request.d.ts +6 -2
- package/dist/templatesCompiled/client/core/fetch/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +22 -2
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts +2 -0
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +11 -3
- package/dist/templatesCompiled/client/core/node/request.d.ts +6 -2
- package/dist/templatesCompiled/client/core/node/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +22 -2
- package/dist/templatesCompiled/client/core/xhr/request.d.ts +6 -2
- package/dist/templatesCompiled/client/core/xhr/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +22 -2
- package/dist/templatesCompiled/client/exportService.d.ts +11 -9
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +82 -64
- package/package.json +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAapD,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAapD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
3
3
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
6
7
|
request: z.ZodOptional<z.ZodString>;
|
|
7
8
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
9
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -25,6 +26,7 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
25
26
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
26
27
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
27
28
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
28
30
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
31
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
30
32
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
|
|
@@ -7,6 +7,7 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
7
7
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
10
11
|
request: z.ZodOptional<z.ZodString>;
|
|
11
12
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
13
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -26,6 +27,7 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
26
27
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
28
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
28
29
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
29
31
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
32
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
31
33
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
9
9
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
12
13
|
request: z.ZodOptional<z.ZodString>;
|
|
13
14
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
15
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -28,6 +29,7 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
28
29
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
29
30
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
30
31
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
31
33
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
34
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
33
35
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
5
5
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
8
9
|
request: z.ZodOptional<z.ZodString>;
|
|
9
10
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
11
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -24,6 +25,7 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
24
25
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
25
26
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
26
27
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
27
29
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
30
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
29
31
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAA"}
|
|
@@ -5,6 +5,7 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
5
5
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
8
9
|
request: z.ZodOptional<z.ZodString>;
|
|
9
10
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
11
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -24,6 +25,7 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
24
25
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
25
26
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
26
27
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
27
29
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
30
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
29
31
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIjC,CAAC"}
|
|
@@ -7,6 +7,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
7
7
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
10
11
|
request: z.ZodOptional<z.ZodString>;
|
|
11
12
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
13
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -29,6 +30,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
29
30
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
30
31
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
31
32
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
32
34
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
35
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
34
36
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -56,6 +58,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
56
58
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
57
59
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
58
60
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
59
62
|
request: z.ZodOptional<z.ZodString>;
|
|
60
63
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
64
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -75,6 +78,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
75
78
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
76
79
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
77
80
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
78
82
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
83
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
80
84
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -104,6 +108,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
104
108
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
105
109
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
106
110
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
107
112
|
request: z.ZodOptional<z.ZodString>;
|
|
108
113
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
114
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -123,6 +128,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
123
128
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
124
129
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
125
130
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
126
132
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
133
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
128
134
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -148,6 +154,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
148
154
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
149
155
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
150
156
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
151
158
|
request: z.ZodOptional<z.ZodString>;
|
|
152
159
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
160
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -167,6 +174,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
167
174
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
168
175
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
169
176
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
170
178
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
179
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
172
180
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -225,6 +233,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
225
233
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
226
234
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
227
235
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
228
237
|
request: z.ZodOptional<z.ZodString>;
|
|
229
238
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
239
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -244,6 +253,7 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
244
253
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
245
254
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
246
255
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
247
257
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
258
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
249
259
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -324,6 +334,7 @@ export declare const flatOptionsSchema: z.ZodObject<{
|
|
|
324
334
|
diffReport: z.ZodOptional<z.ZodString>;
|
|
325
335
|
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
326
336
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
327
338
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
328
339
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
329
340
|
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,KAAK,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,CAAC,SAAS,SAAS,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/F,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"UnifiedVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,KAAK,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,CAAC,SAAS,SAAS,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/F,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMpB,CAAC;AAEX,KAAK,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AAChE,KAAK,uBAAuB,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EAMlE,CAAC;AAIF,eAAO,MAAM,gBAAgB,EAAE,uBAAuB,CAAC,MAAM,CAAgC,CAAC;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC"}
|
|
@@ -93,10 +93,12 @@ export declare const additionalParametersSchemaV2: z.ZodObject<{
|
|
|
93
93
|
/** Experimental parameters */
|
|
94
94
|
export declare const experimentalParametersSchema: z.ZodObject<{
|
|
95
95
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
96
97
|
}, z.core.$strip>;
|
|
97
98
|
export declare const experimentalParametersSchemaV2: z.ZodObject<{
|
|
98
99
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
99
100
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
100
101
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
101
103
|
}, z.core.$strip>;
|
|
102
104
|
//# sourceMappingURL=CommonSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonSchemas.d.ts","sourceRoot":"","sources":["../../../src/common/VersionedSchema/CommonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AAEF,4BAA4B;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAEvC,CAAC;AAEH,8BAA8B;AAE9B,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"CommonSchemas.d.ts","sourceRoot":"","sources":["../../../src/common/VersionedSchema/CommonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AAEF,4BAA4B;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAEvC,CAAC;AAEH,8BAA8B;AAE9B,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;iBAIzC,CAAC"}
|
|
@@ -85,6 +85,7 @@ exports.additionalParametersSchemaV2 = exports.additionalParametersSchema.omit({
|
|
|
85
85
|
/** Experimental parameters */
|
|
86
86
|
exports.experimentalParametersSchema = zod_1.z.object({
|
|
87
87
|
useCancelableRequest: zod_1.z.boolean().optional(),
|
|
88
|
+
useRequestRaw: zod_1.z.boolean().optional(),
|
|
88
89
|
});
|
|
89
90
|
exports.experimentalParametersSchemaV2 = zod_1.z.object({
|
|
90
91
|
...exports.experimentalParametersSchema.shape,
|
package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsMigrationPlan.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"MultiOptionsMigrationPlan.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EA6BpG,CAAC"}
|
|
@@ -13,6 +13,7 @@ exports.multiOptionsMigrationPlan = [
|
|
|
13
13
|
}), 'Renames client field to httpClient'),
|
|
14
14
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('v2', 'v3', {
|
|
15
15
|
useCancelableRequest: false,
|
|
16
|
+
useRequestRaw: true,
|
|
16
17
|
}),
|
|
17
18
|
(0, createFieldTransformationMigration_1.createFieldTransformationMigration)('v3', 'v4', ({ items, input, output, outputCore, outputServices, outputModels, outputSchemas, ...otherProps }) => ({
|
|
18
19
|
...otherProps,
|
|
@@ -4,6 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const multiOptionsSchemaV3: z.ZodObject<{
|
|
6
6
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
7
8
|
input: z.ZodString;
|
|
8
9
|
output: z.ZodString;
|
|
9
10
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB;;GAEG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const multiOptionsSchemaV4: z.ZodObject<{
|
|
|
11
11
|
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strip>>;
|
|
13
13
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
15
16
|
request: z.ZodOptional<z.ZodString>;
|
|
16
17
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const multiOptionsSchemaV5: z.ZodObject<{
|
|
|
3
3
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
6
7
|
request: z.ZodOptional<z.ZodString>;
|
|
7
8
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
9
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AActB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AActB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"OptionsMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAiBhG,CAAC"}
|
|
@@ -10,6 +10,7 @@ exports.optionsMigrationPlans = [
|
|
|
10
10
|
(0, createFieldTransformationMigration_1.createFieldTransformationMigration)('v1', 'v2', ({ client, ...otherProps }) => ({ ...otherProps, httpClient: client }), 'Renames client field to httpClient'),
|
|
11
11
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('v2', 'v3', {
|
|
12
12
|
useCancelableRequest: false,
|
|
13
|
+
useRequestRaw: true,
|
|
13
14
|
}),
|
|
14
15
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('v3', 'v4', {
|
|
15
16
|
excludeCoreServiceFiles: false,
|
|
@@ -4,6 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const optionsSchemaV3: z.ZodObject<{
|
|
6
6
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
7
8
|
input: z.ZodString;
|
|
8
9
|
output: z.ZodString;
|
|
9
10
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"OptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1B,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const optionsSchemaV4: z.ZodObject<{
|
|
|
6
6
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
9
10
|
request: z.ZodOptional<z.ZodString>;
|
|
10
11
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"OptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatibilityCases.d.ts","sourceRoot":"","sources":["../../../../../src/common/VersionedSchema/Utils/__mocks__/compatibilityCases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iBAAiB,GAAG;IACrB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"compatibilityCases.d.ts","sourceRoot":"","sources":["../../../../../src/common/VersionedSchema/Utils/__mocks__/compatibilityCases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iBAAiB,GAAG;IACrB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EAwHjD,CAAC"}
|
|
@@ -21,7 +21,10 @@ exports.compatibilityCases = [
|
|
|
21
21
|
type: Enums_1.EVersionedSchemaType.OPTIONS,
|
|
22
22
|
from: 'v2',
|
|
23
23
|
to: 'v3',
|
|
24
|
-
expect: [
|
|
24
|
+
expect: [
|
|
25
|
+
{ type: 'added', key: 'useCancelableRequest' },
|
|
26
|
+
{ type: 'added', key: 'useRequestRaw' },
|
|
27
|
+
],
|
|
25
28
|
},
|
|
26
29
|
{
|
|
27
30
|
type: Enums_1.EVersionedSchemaType.OPTIONS,
|
|
@@ -52,7 +55,10 @@ exports.compatibilityCases = [
|
|
|
52
55
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
53
56
|
from: 'v2',
|
|
54
57
|
to: 'v3',
|
|
55
|
-
expect: [
|
|
58
|
+
expect: [
|
|
59
|
+
{ type: 'added', key: 'useCancelableRequest' },
|
|
60
|
+
{ type: 'added', key: 'useRequestRaw' },
|
|
61
|
+
],
|
|
56
62
|
},
|
|
57
63
|
{
|
|
58
64
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
@@ -16,6 +16,7 @@ const convertArrayToObject_1 = require("../convertArrayToObject");
|
|
|
16
16
|
customExecutorPath: undefined,
|
|
17
17
|
useOptions: undefined,
|
|
18
18
|
useCancelableRequest: undefined,
|
|
19
|
+
useRequestRaw: undefined,
|
|
19
20
|
});
|
|
20
21
|
});
|
|
21
22
|
(0, node_test_1.test)('returns default shape for empty array', () => {
|
|
@@ -27,6 +28,7 @@ const convertArrayToObject_1 = require("../convertArrayToObject");
|
|
|
27
28
|
customExecutorPath: undefined,
|
|
28
29
|
useOptions: undefined,
|
|
29
30
|
useCancelableRequest: undefined,
|
|
31
|
+
useRequestRaw: undefined,
|
|
30
32
|
});
|
|
31
33
|
});
|
|
32
34
|
(0, node_test_1.test)('passes through object config unchanged', () => {
|
|
@@ -64,6 +66,7 @@ const convertArrayToObject_1 = require("../convertArrayToObject");
|
|
|
64
66
|
enumPrefix: undefined,
|
|
65
67
|
typePrefix: undefined,
|
|
66
68
|
useCancelableRequest: undefined,
|
|
69
|
+
useRequestRaw: undefined,
|
|
67
70
|
logLevel: undefined,
|
|
68
71
|
logTarget: undefined,
|
|
69
72
|
sortByRequired: undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertArrayToObject.d.ts","sourceRoot":"","sources":["../../../src/common/utils/convertArrayToObject.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"convertArrayToObject.d.ts","sourceRoot":"","sources":["../../../src/common/utils/convertArrayToObject.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAkHxH"}
|
|
@@ -9,6 +9,7 @@ function convertArrayToObject(optionsArr) {
|
|
|
9
9
|
customExecutorPath: undefined,
|
|
10
10
|
useOptions: undefined,
|
|
11
11
|
useCancelableRequest: undefined,
|
|
12
|
+
useRequestRaw: undefined,
|
|
12
13
|
};
|
|
13
14
|
if (!optionsArr) {
|
|
14
15
|
return emptyResult;
|
|
@@ -27,6 +28,7 @@ function convertArrayToObject(optionsArr) {
|
|
|
27
28
|
'enumPrefix',
|
|
28
29
|
'typePrefix',
|
|
29
30
|
'useCancelableRequest',
|
|
31
|
+
'useRequestRaw',
|
|
30
32
|
'logLevel',
|
|
31
33
|
'logTarget',
|
|
32
34
|
'sortByRequired',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiClient.d.ts","sourceRoot":"","sources":["../../src/core/OpenApiClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,WAAW,EAAsB,MAAM,uBAAuB,CAAC;AAwBtF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,aAAa;IACtB,OAAO,CAAC,YAAY,CAA4B;IAEhD,IAAW,WAAW,gBAKrB;IAED,OAAO,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"OpenApiClient.d.ts","sourceRoot":"","sources":["../../src/core/OpenApiClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,WAAW,EAAsB,MAAM,uBAAuB,CAAC;AAwBtF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,aAAa;IACtB,OAAO,CAAC,YAAY,CAA4B;IAEhD,IAAW,WAAW,gBAKrB;IAED,OAAO,CAAC,gBAAgB;IA0ExB,OAAO,CAAC,gBAAgB;YAyCV,sBAAsB;YAUtB,oBAAoB;YAoCpB,cAAc;YA8Jd,sBAAsB;IASpC,OAAO,CAAC,uBAAuB;IAczB,QAAQ,CAAC,UAAU,EAAE,WAAW;CAWzC"}
|
|
@@ -52,6 +52,7 @@ class OpenApiClient {
|
|
|
52
52
|
enumPrefix: rawOptions.enumPrefix,
|
|
53
53
|
typePrefix: rawOptions.typePrefix,
|
|
54
54
|
useCancelableRequest: rawOptions.useCancelableRequest,
|
|
55
|
+
useRequestRaw: rawOptions.useRequestRaw,
|
|
55
56
|
logLevel: rawOptions.logLevel,
|
|
56
57
|
logTarget: rawOptions.logTarget,
|
|
57
58
|
sortByRequired: rawOptions.sortByRequired,
|
|
@@ -88,6 +89,7 @@ class OpenApiClient {
|
|
|
88
89
|
enumPrefix: rawOptions.enumPrefix,
|
|
89
90
|
typePrefix: rawOptions.typePrefix,
|
|
90
91
|
useCancelableRequest: rawOptions.useCancelableRequest,
|
|
92
|
+
useRequestRaw: rawOptions.useRequestRaw,
|
|
91
93
|
logLevel: rawOptions.logLevel,
|
|
92
94
|
logTarget: rawOptions.logTarget,
|
|
93
95
|
sortByRequired: rawOptions.sortByRequired,
|
|
@@ -124,6 +126,7 @@ class OpenApiClient {
|
|
|
124
126
|
enumPrefix: item.enumPrefix || Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.enumPrefix,
|
|
125
127
|
typePrefix: item.typePrefix || Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.typePrefix,
|
|
126
128
|
useCancelableRequest: item.useCancelableRequest ?? Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.useCancelableRequest,
|
|
129
|
+
useRequestRaw: item.useRequestRaw ?? Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.useRequestRaw,
|
|
127
130
|
logLevel: item.logLevel || Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.logLevel,
|
|
128
131
|
logTarget: item.logTarget || Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.logTarget,
|
|
129
132
|
sortByRequired: item.sortByRequired ?? Consts_1.COMMON_DEFAULT_OPTIONS_VALUES.sortByRequired,
|
|
@@ -186,7 +189,7 @@ class OpenApiClient {
|
|
|
186
189
|
this.writeClient.logger.shutdownLogger();
|
|
187
190
|
}
|
|
188
191
|
async generateSingle(item) {
|
|
189
|
-
const { input, output, outputCore, outputServices, outputModels, outputSchemas, httpClient, useOptions, useUnionTypes, excludeCoreServiceFiles, request, plugins, customExecutorPath, interfacePrefix, enumPrefix, typePrefix, useCancelableRequest, sortByRequired, useSeparatedIndexes, validationLibrary = ValidationLibrary_enum_1.ValidationLibrary.NONE, emptySchemaStrategy = EmptySchemaStrategy_enum_1.EmptySchemaStrategy.KEEP, useHistory, diffReport, modelsMode = ModelsMode_enum_1.ModelsMode.INTERFACES, strictOpenapi, reportFile, useProjectPrettier = false, useEslintFix = false, governanceConfig, } = item;
|
|
192
|
+
const { input, output, outputCore, outputServices, outputModels, outputSchemas, httpClient, useOptions, useUnionTypes, excludeCoreServiceFiles, request, plugins, customExecutorPath, interfacePrefix, enumPrefix, typePrefix, useCancelableRequest, useRequestRaw, sortByRequired, useSeparatedIndexes, validationLibrary = ValidationLibrary_enum_1.ValidationLibrary.NONE, emptySchemaStrategy = EmptySchemaStrategy_enum_1.EmptySchemaStrategy.KEEP, useHistory, diffReport, modelsMode = ModelsMode_enum_1.ModelsMode.INTERFACES, strictOpenapi, reportFile, useProjectPrettier = false, useEslintFix = false, governanceConfig, } = item;
|
|
190
193
|
const outputPaths = (0, getOutputPaths_1.getOutputPaths)({
|
|
191
194
|
output,
|
|
192
195
|
outputCore,
|
|
@@ -258,6 +261,7 @@ class OpenApiClient {
|
|
|
258
261
|
request,
|
|
259
262
|
customExecutorPath,
|
|
260
263
|
useCancelableRequest,
|
|
264
|
+
useRequestRaw,
|
|
261
265
|
useSeparatedIndexes,
|
|
262
266
|
validationLibrary,
|
|
263
267
|
emptySchemaStrategy,
|
|
@@ -292,6 +296,7 @@ class OpenApiClient {
|
|
|
292
296
|
request,
|
|
293
297
|
customExecutorPath,
|
|
294
298
|
useCancelableRequest,
|
|
299
|
+
useRequestRaw,
|
|
295
300
|
useSeparatedIndexes,
|
|
296
301
|
validationLibrary,
|
|
297
302
|
emptySchemaStrategy,
|
|
@@ -28,6 +28,7 @@ import { writeClientSimpleIndex } from './utils/writeClientSimpleIndex';
|
|
|
28
28
|
* @param excludeCoreServiceFiles The generation of the core and services is excluded
|
|
29
29
|
* @param request: Path to custom request file
|
|
30
30
|
* @param useCancelableRequest Use cancelable request type.
|
|
31
|
+
* @param useRequestRaw Generate requestRaw methods and ApiResult-based raw stack.
|
|
31
32
|
* @param useSeparatedIndexes Use separate index files for the core, models, schemas, and services
|
|
32
33
|
* @param validationLibrary Validation library to use for schema validation
|
|
33
34
|
*/
|
|
@@ -42,6 +43,7 @@ type TWriteClientProps = {
|
|
|
42
43
|
request?: string;
|
|
43
44
|
customExecutorPath?: string;
|
|
44
45
|
useCancelableRequest?: boolean;
|
|
46
|
+
useRequestRaw?: boolean;
|
|
45
47
|
useSeparatedIndexes?: boolean;
|
|
46
48
|
validationLibrary?: ValidationLibrary;
|
|
47
49
|
emptySchemaStrategy: EmptySchemaStrategy;
|
|
@@ -49,7 +51,7 @@ type TWriteClientProps = {
|
|
|
49
51
|
useProjectPrettier?: boolean;
|
|
50
52
|
useEslintFix?: boolean;
|
|
51
53
|
};
|
|
52
|
-
type TAPIClientGeneratorConfig = Omit<TWriteClientProps, 'httpClient' | 'useOptions' | 'request' | 'useCancelableRequest' | 'useSeparatedIndexes'> & {
|
|
54
|
+
type TAPIClientGeneratorConfig = Omit<TWriteClientProps, 'httpClient' | 'useOptions' | 'request' | 'useCancelableRequest' | 'useRequestRaw' | 'useSeparatedIndexes'> & {
|
|
53
55
|
schemaModels: Model[];
|
|
54
56
|
};
|
|
55
57
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WriteClient.d.ts","sourceRoot":"","sources":["../../src/core/WriteClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM1C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAIxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE
|
|
1
|
+
{"version":3,"file":"WriteClient.d.ts","sourceRoot":"","sources":["../../src/core/WriteClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM1C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAIxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE;;;;;;;;;;;;;GAaG;AACH,KAAK,iBAAiB,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,KAAK,yBAAyB,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,GAAG,YAAY,GAAG,SAAS,GAAG,sBAAsB,GAAG,eAAe,GAAG,qBAAqB,CAAC,GAAG;IACnK,YAAY,EAAE,KAAK,EAAE,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAuD;IACrE,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,CAAC,EAAE,MAAM;IAU3B;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;YAyI9C,sBAAsB;IA0DpC;;;OAGG;IACH,6BAA6B,CAAC,MAAM,EAAE,yBAAyB;IAUzD,eAAe;IAKf,sBAAsB;IAK5B,IAAW,MAAM,WAEhB;IAED,OAAO,CAAC,yBAAyB;IAyCjC,OAAO,CAAC,mBAAmB;YAkEb,gBAAgB;YAUhB,uBAAuB;IAMrC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,aAAa;IAId,eAAe,yBAAmB;IAClC,oBAAoB,8BAAwB;IAC5C,oBAAoB,8BAAwB;IAC5C,iBAAiB,2BAAqB;IACtC,sBAAsB,gCAA0B;IAChD,kBAAkB,4BAAsB;IACxC,uBAAuB,iCAA2B;IAClD,mBAAmB,6BAAuB;IAC1C,wBAAwB,kCAA4B;IACpD,sBAAsB,gCAA0B;IAChD,mBAAmB,6BAAuB;CACpD"}
|
package/dist/core/WriteClient.js
CHANGED
|
@@ -40,14 +40,14 @@ class WriteClient {
|
|
|
40
40
|
* Write our OpenAPI client, using the given templates at the given output
|
|
41
41
|
*/
|
|
42
42
|
async writeClient(options) {
|
|
43
|
-
const { client, templates, outputPaths, httpClient, useOptions, useUnionTypes, excludeCoreServiceFiles = false, request, customExecutorPath, useCancelableRequest = false, useSeparatedIndexes = false, validationLibrary = ValidationLibrary_enum_1.ValidationLibrary.NONE, emptySchemaStrategy, modelsMode, useProjectPrettier = false, useEslintFix = false, } = options;
|
|
43
|
+
const { client, templates, outputPaths, httpClient, useOptions, useUnionTypes, excludeCoreServiceFiles = false, request, customExecutorPath, useCancelableRequest = false, useRequestRaw = true, useSeparatedIndexes = false, validationLibrary = ValidationLibrary_enum_1.ValidationLibrary.NONE, emptySchemaStrategy, modelsMode, useProjectPrettier = false, useEslintFix = false, } = options;
|
|
44
44
|
if (!excludeCoreServiceFiles) {
|
|
45
45
|
const executorPath = (0, pathHelpers_1.resolveHelper)(outputPaths.outputCore, 'executor');
|
|
46
46
|
const interceptorsPath = (0, pathHelpers_1.resolveHelper)(outputPaths.outputCore, 'interceptors');
|
|
47
47
|
await fileSystemHelpers_1.fileSystemHelpers.mkdir(outputPaths.outputCore);
|
|
48
48
|
await fileSystemHelpers_1.fileSystemHelpers.mkdir(executorPath);
|
|
49
49
|
await fileSystemHelpers_1.fileSystemHelpers.mkdir(interceptorsPath);
|
|
50
|
-
await this.writeClientCore({ client, templates, outputCorePath: outputPaths.outputCore, httpClient, request, useCancelableRequest, modelsMode });
|
|
50
|
+
await this.writeClientCore({ client, templates, outputCorePath: outputPaths.outputCore, httpClient, request, useCancelableRequest, useRequestRaw, modelsMode });
|
|
51
51
|
await this.writeClientCoreIndex({
|
|
52
52
|
templates,
|
|
53
53
|
outputCorePath: outputPaths.outputCore,
|
|
@@ -69,6 +69,7 @@ class WriteClient {
|
|
|
69
69
|
useUnionTypes,
|
|
70
70
|
useOptions,
|
|
71
71
|
useCancelableRequest,
|
|
72
|
+
useRequestRaw,
|
|
72
73
|
useProjectPrettier,
|
|
73
74
|
useEslintFix,
|
|
74
75
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type CacheEntry = {
|
|
2
|
+
key: string;
|
|
3
|
+
fingerprint: string;
|
|
4
|
+
files: string[];
|
|
5
|
+
updatedAt: number;
|
|
6
|
+
};
|
|
7
|
+
export declare class GenerationCache {
|
|
8
|
+
private readonly cachePath;
|
|
9
|
+
private data;
|
|
10
|
+
constructor(cachePath: string);
|
|
11
|
+
static hash(value: string): string;
|
|
12
|
+
load(): Promise<void>;
|
|
13
|
+
get(key: string): CacheEntry | undefined;
|
|
14
|
+
set(entry: CacheEntry): void;
|
|
15
|
+
save(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export type { CacheEntry };
|
|
18
|
+
//# sourceMappingURL=GenerationCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerationCache.d.ts","sourceRoot":"","sources":["../../../src/core/utils/GenerationCache.ts"],"names":[],"mappings":"AAMA,KAAK,UAAU,GAAG;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AASF,qBAAa,eAAe;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,IAAI,CAA8D;gBAE9D,SAAS,EAAE,MAAM;IAI7B,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAI5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAc3B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIxC,GAAG,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAItB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAI9B;AAED,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerationCache = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const fileSystemHelpers_1 = require("../../common/utils/fileSystemHelpers");
|
|
7
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
8
|
+
const CURRENT_CACHE_VERSION = 1;
|
|
9
|
+
class GenerationCache {
|
|
10
|
+
cachePath;
|
|
11
|
+
data = { version: CURRENT_CACHE_VERSION, entries: {} };
|
|
12
|
+
constructor(cachePath) {
|
|
13
|
+
this.cachePath = (0, pathHelpers_1.resolveHelper)(process.cwd(), cachePath);
|
|
14
|
+
}
|
|
15
|
+
static hash(value) {
|
|
16
|
+
return (0, crypto_1.createHash)('sha256').update(value).digest('hex');
|
|
17
|
+
}
|
|
18
|
+
async load() {
|
|
19
|
+
const exists = await fileSystemHelpers_1.fileSystemHelpers.exists(this.cachePath);
|
|
20
|
+
if (!exists) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const raw = await fileSystemHelpers_1.fileSystemHelpers.readFile(this.cachePath, 'utf8');
|
|
24
|
+
const parsed = JSON.parse(raw);
|
|
25
|
+
if (!parsed || parsed.version !== CURRENT_CACHE_VERSION || !parsed.entries) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.data = parsed;
|
|
29
|
+
}
|
|
30
|
+
get(key) {
|
|
31
|
+
return this.data.entries[key];
|
|
32
|
+
}
|
|
33
|
+
set(entry) {
|
|
34
|
+
this.data.entries[entry.key] = entry;
|
|
35
|
+
}
|
|
36
|
+
async save() {
|
|
37
|
+
await fileSystemHelpers_1.fileSystemHelpers.mkdir((0, path_1.dirname)(this.cachePath));
|
|
38
|
+
await fileSystemHelpers_1.fileSystemHelpers.writeFile(this.cachePath, JSON.stringify(this.data, null, 2));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GenerationCache = GenerationCache;
|