ts-openapi-codegen 1.0.0-beta.6 → 1.0.0-beta.8
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 +43 -58
- package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.d.ts +1 -1
- package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.d.ts.map +1 -1
- package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.js +9 -4
- package/dist/cli/generate/runGenerateOpenApi.d.ts.map +1 -1
- package/dist/cli/generate/runGenerateOpenApi.js +8 -7
- package/dist/cli/index.js +30 -15
- package/dist/cli/initOpenApiConfig/Enums.d.ts +5 -0
- package/dist/cli/initOpenApiConfig/Enums.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/Enums.js +8 -0
- package/dist/cli/initOpenApiConfig/Types.d.ts +6 -0
- package/dist/cli/initOpenApiConfig/Types.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.d.ts +3 -0
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.js +77 -0
- package/dist/cli/utils.d.ts +0 -17
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +0 -20
- package/dist/common/Consts.d.ts +2 -0
- package/dist/common/Consts.d.ts.map +1 -0
- package/dist/common/Consts.js +4 -0
- package/dist/common/Enums.d.ts.map +1 -1
- package/dist/common/Options.d.ts +4 -6
- package/dist/common/Options.d.ts.map +1 -1
- package/dist/common/Utils.d.ts +1 -1
- package/dist/common/Utils.d.ts.map +1 -1
- package/dist/common/Utils.js +11 -12
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +12 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +27 -1
- package/dist/common/VersionedSchema/{MultiOptionsMigrationPlan.d.ts → MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts} +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{MultiOptionsMigrationPlan.js → MultiOptionsVersioned/MultiOptionsMigrationPlan.js} +18 -7
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +6 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{MultiOptionsSchemaV1.js → MultiOptionsVersioned/MultiOptionsSchemaV1.js} +4 -4
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +6 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{MultiOptionsSchemaV2.js → MultiOptionsVersioned/MultiOptionsSchemaV2.js} +4 -4
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +5 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{MultiOptionsSchemaV3.js → MultiOptionsVersioned/MultiOptionsSchemaV3.js} +3 -3
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +6 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{MultiOptionsSchemaV4.js → MultiOptionsVersioned/MultiOptionsSchemaV4.js} +4 -4
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +6 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.js +22 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts +3 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{MultiOptionsVersionedSchemas.js → MultiOptionsVersioned/MultiOptionsVersionedSchemas.js} +10 -5
- package/dist/common/VersionedSchema/{OptionsMigrationPlans.d.ts → OptionsVersioned/OptionsMigrationPlans.d.ts} +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +23 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +6 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{OptionsSchemaV1.js → OptionsVersioned/OptionsSchemaV1.js} +4 -4
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +6 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{OptionsSchemaV2.js → OptionsVersioned/OptionsSchemaV2.js} +4 -4
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +5 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{OptionsSchemaV3.js → OptionsVersioned/OptionsSchemaV3.js} +3 -3
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +6 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.js +17 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.d.ts +3 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.d.ts.map +1 -0
- package/dist/common/VersionedSchema/{OptionsVersionedSchemas.js → OptionsVersioned/OptionsVersionedSchemas.js} +9 -4
- package/dist/common/VersionedSchema/Types.d.ts +0 -4
- package/dist/common/VersionedSchema/Types.d.ts.map +1 -1
- package/dist/common/__tests__/convertArrayToObject.test.js +62 -59
- package/dist/common/__tests__/mergeObjectSchemas.test.js +1 -1
- package/dist/common/__tests__/migrationForMultiOptions.test.js +9 -5
- package/dist/common/__tests__/migrationForOptions.test.js +17 -8
- package/dist/common/defaultOptions.d.ts.map +1 -1
- package/dist/common/defaultOptions.js +5 -7
- package/dist/core/Context.d.ts +15 -7
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +3 -0
- package/dist/core/WriteClient.d.ts +43 -45
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +156 -81
- package/dist/core/__tests__/WriteClient.test.js +12 -8
- package/dist/core/api/v2/parser/__tests__/getType.test.js +7 -25
- package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModel.js +5 -2
- package/dist/core/api/v2/parser/getModelProperties.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModelProperties.js +3 -1
- package/dist/core/api/v2/parser/getModels.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModels.js +3 -29
- package/dist/core/api/v2/parser/getOperation.d.ts +1 -1
- package/dist/core/api/v2/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperation.js +3 -3
- package/dist/core/api/v2/parser/getOperationParameter.d.ts +1 -1
- package/dist/core/api/v2/parser/getOperationParameter.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationParameter.js +4 -2
- package/dist/core/api/v2/parser/getOperationParameters.d.ts +1 -1
- package/dist/core/api/v2/parser/getOperationParameters.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationParameters.js +2 -2
- package/dist/core/api/v2/parser/getOperationResponse.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponse.js +3 -1
- package/dist/core/api/v2/parser/getOperationResponses.d.ts +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +2 -2
- package/dist/core/api/v2/parser/getServiceName.d.ts +3 -0
- package/dist/core/api/v2/parser/getServiceName.d.ts.map +1 -0
- package/dist/core/api/v2/parser/getServiceName.js +8 -0
- package/dist/core/api/v2/parser/getServices.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getServices.js +21 -32
- package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getType.js +13 -9
- package/dist/core/api/v3/parser/__tests__/getType.test.js +6 -24
- package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModel.js +5 -2
- package/dist/core/api/v3/parser/getModelProperties.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModelProperties.js +3 -1
- package/dist/core/api/v3/parser/getModels.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModels.js +3 -29
- package/dist/core/api/v3/parser/getOperation.d.ts +1 -1
- package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperation.js +4 -4
- package/dist/core/api/v3/parser/getOperationParameter.d.ts +1 -1
- package/dist/core/api/v3/parser/getOperationParameter.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationParameter.js +6 -3
- package/dist/core/api/v3/parser/getOperationParameters.d.ts +1 -1
- package/dist/core/api/v3/parser/getOperationParameters.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationParameters.js +2 -2
- package/dist/core/api/v3/parser/getOperationRequestBody.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationRequestBody.js +3 -1
- package/dist/core/api/v3/parser/getOperationResponse.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponse.js +3 -1
- package/dist/core/api/v3/parser/getOperationResponses.d.ts +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +2 -2
- package/dist/core/api/v3/parser/getServiceName.d.ts +3 -0
- package/dist/core/api/v3/parser/getServiceName.d.ts.map +1 -0
- package/dist/core/api/v3/parser/getServiceName.js +8 -0
- package/dist/core/api/v3/parser/getServices.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getServices.js +18 -84
- package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +22 -10
- package/dist/core/api/v3/types/OpenApiPath.model.d.ts +2 -1
- package/dist/core/api/v3/types/OpenApiPath.model.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +19 -20
- package/dist/core/types/base/ClientArtifacts.model.d.ts +12 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -0
- package/dist/core/types/base/ExportedModel.model.d.ts +17 -0
- package/dist/core/types/base/ExportedModel.model.d.ts.map +1 -0
- package/dist/core/types/base/ExportedModel.model.js +2 -0
- package/dist/core/types/base/ExportedService.model.d.ts +9 -0
- package/dist/core/types/base/ExportedService.model.d.ts.map +1 -0
- package/dist/core/types/base/ExportedService.model.js +2 -0
- package/dist/core/types/base/OutputPaths.model.d.ts +15 -0
- package/dist/core/types/base/OutputPaths.model.d.ts.map +1 -0
- package/dist/core/types/base/OutputPaths.model.js +2 -0
- package/dist/core/types/base/PrefixArtifacts.model.d.ts +6 -0
- package/dist/core/types/base/PrefixArtifacts.model.d.ts.map +1 -0
- package/dist/core/types/base/PrefixArtifacts.model.js +2 -0
- package/dist/core/types/base/PropertyGroup.model.d.ts +4 -0
- package/dist/core/types/base/PropertyGroup.model.d.ts.map +1 -0
- package/dist/core/types/base/PropertyGroup.model.js +2 -0
- package/dist/core/types/base/RefWithtype.model.d.ts +11 -0
- package/dist/core/types/base/RefWithtype.model.d.ts.map +1 -0
- package/dist/core/types/base/RefWithtype.model.js +2 -0
- package/dist/core/types/base/Root.model.d.ts +5 -0
- package/dist/core/types/base/Root.model.d.ts.map +1 -0
- package/dist/core/types/base/Root.model.js +2 -0
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts +10 -0
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts.map +1 -0
- package/dist/core/types/base/SimpleClientArtifacts.model.js +2 -0
- package/dist/core/types/enums/HttpClient.enum.d.ts +7 -0
- package/dist/core/types/enums/HttpClient.enum.d.ts.map +1 -0
- package/dist/core/types/{Enums.js → enums/HttpClient.enum.js} +1 -9
- package/dist/core/types/enums/TypeRef.enum.d.ts +8 -0
- package/dist/core/types/enums/TypeRef.enum.d.ts.map +1 -0
- package/dist/core/types/enums/TypeRef.enum.js +11 -0
- package/dist/core/utils/__tests__/getAbsolutePath.test.js +1 -1
- package/dist/core/utils/__tests__/getGatheringRefs.test.js +3 -6
- package/dist/core/utils/__tests__/getRefFromSchema.test.js +1 -1
- package/dist/core/utils/__tests__/pathHelpers.test.js +4 -4
- package/dist/core/utils/__tests__/refResolver.test.d.ts +2 -0
- package/dist/core/utils/__tests__/refResolver.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/refResolver.test.js +55 -0
- package/dist/core/utils/__tests__/registerHandlebarHelpers.test.js +2 -2
- package/dist/core/utils/__tests__/registerHandlebarTemplates.test.js +7 -3
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.js +67 -0
- package/dist/core/utils/__tests__/sortByRequiredExtended.test.js +24 -24
- package/dist/core/utils/__tests__/sortByRequiredSimple.test.js +13 -13
- package/dist/core/utils/__tests__/writeClientCore.test.js +14 -6
- package/dist/core/utils/__tests__/writeClientFullIndex.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeClientFullIndex.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/{writeClientIndex.test.js → writeClientFullIndex.test.js} +15 -7
- package/dist/core/utils/__tests__/writeClientModels.test.js +15 -7
- package/dist/core/utils/__tests__/writeClientSchemas.test.js +15 -7
- package/dist/core/utils/__tests__/writeClientServices.test.js +15 -7
- package/dist/core/utils/advancedDeduplicatePath.d.ts +5 -0
- package/dist/core/utils/advancedDeduplicatePath.d.ts.map +1 -0
- package/dist/core/utils/advancedDeduplicatePath.js +29 -0
- package/dist/core/utils/appendUniqueLinesToFile.d.ts +2 -0
- package/dist/core/utils/appendUniqueLinesToFile.d.ts.map +1 -0
- package/dist/core/utils/appendUniqueLinesToFile.js +24 -0
- package/dist/core/utils/createNormalizedRef.d.ts +7 -0
- package/dist/core/utils/createNormalizedRef.d.ts.map +1 -0
- package/dist/core/utils/createNormalizedRef.js +24 -0
- package/dist/core/utils/findCommonParent.d.ts +7 -0
- package/dist/core/utils/findCommonParent.d.ts.map +1 -0
- package/dist/core/utils/findCommonParent.js +20 -0
- package/dist/core/utils/getAbsolutePath.d.ts.map +1 -1
- package/dist/core/utils/getAbsolutePath.js +16 -5
- package/dist/core/utils/getGatheringRefs.d.ts +2 -2
- package/dist/core/utils/getGatheringRefs.d.ts.map +1 -1
- package/dist/core/utils/getGatheringRefs.js +26 -17
- package/dist/core/utils/getMappedType.d.ts +0 -1
- package/dist/core/utils/getMappedType.d.ts.map +1 -1
- package/dist/core/utils/getMappedType.js +3 -4
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +9 -32
- package/dist/core/utils/getOutputPaths.d.ts +2 -2
- package/dist/core/utils/getOutputPaths.d.ts.map +1 -1
- package/dist/core/utils/getPropertyGroupExtended.d.ts +2 -2
- package/dist/core/utils/getPropertyGroupExtended.d.ts.map +1 -1
- package/dist/core/utils/getPropertyGroupSimple.d.ts +2 -2
- package/dist/core/utils/getPropertyGroupSimple.d.ts.map +1 -1
- package/dist/core/utils/getRefFromSchema.js +2 -2
- package/dist/core/utils/getRelativeModelImportPath.js +1 -1
- package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -1
- package/dist/core/utils/getRelativeModelPath.js +5 -0
- package/dist/core/utils/isDirectory.d.ts +2 -0
- package/dist/core/utils/isDirectory.d.ts.map +1 -0
- package/dist/core/utils/isDirectory.js +13 -0
- package/dist/core/utils/isFileName.d.ts +7 -0
- package/dist/core/utils/isFileName.d.ts.map +1 -0
- package/dist/core/utils/isFileName.js +30 -0
- package/dist/core/utils/mapPathToTargetDirSafe.d.ts +10 -0
- package/dist/core/utils/mapPathToTargetDirSafe.d.ts.map +1 -0
- package/dist/core/utils/mapPathToTargetDirSafe.js +49 -0
- package/dist/core/utils/modelHelpers.d.ts +28 -0
- package/dist/core/utils/modelHelpers.d.ts.map +1 -0
- package/dist/core/utils/modelHelpers.js +73 -0
- package/dist/core/utils/normalizeAllRefs.d.ts +6 -0
- package/dist/core/utils/normalizeAllRefs.d.ts.map +1 -0
- package/dist/core/utils/normalizeAllRefs.js +35 -0
- package/dist/core/utils/normalizePath.d.ts +5 -0
- package/dist/core/utils/normalizePath.d.ts.map +1 -0
- package/dist/core/utils/normalizePath.js +19 -0
- package/dist/core/utils/normalizeRef.d.ts +5 -0
- package/dist/core/utils/normalizeRef.d.ts.map +1 -0
- package/dist/core/utils/normalizeRef.js +17 -0
- package/dist/core/utils/parseRef.d.ts +18 -0
- package/dist/core/utils/parseRef.d.ts.map +1 -0
- package/dist/core/utils/parseRef.js +64 -0
- package/dist/core/utils/pathHelpers.d.ts +1 -0
- package/dist/core/utils/pathHelpers.d.ts.map +1 -1
- package/dist/core/utils/pathHelpers.js +23 -3
- package/dist/core/utils/prepareAlias.d.ts +2 -6
- package/dist/core/utils/prepareAlias.d.ts.map +1 -1
- package/dist/core/utils/prepareAlias.js +0 -4
- package/dist/core/utils/prepareOptions.d.ts.map +1 -1
- package/dist/core/utils/prepareOptions.js +5 -7
- package/dist/core/utils/registerHandlebarHelpers.d.ts +1 -1
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.d.ts +9 -2
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +90 -78
- package/dist/core/utils/resolveRefPath.d.ts +7 -0
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -0
- package/dist/core/utils/resolveRefPath.js +34 -0
- package/dist/core/utils/resolveRefToImportPath.d.ts +7 -0
- package/dist/core/utils/resolveRefToImportPath.d.ts.map +1 -0
- package/dist/core/utils/resolveRefToImportPath.js +45 -0
- package/dist/core/utils/serviceHelpers.d.ts +41 -0
- package/dist/core/utils/serviceHelpers.d.ts.map +1 -0
- package/dist/core/utils/serviceHelpers.js +115 -0
- package/dist/core/utils/sortModelByName.d.ts +2 -2
- package/dist/core/utils/sortModelByName.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.d.ts +4 -2
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +4 -1
- package/dist/core/utils/writeClientCoreIndex.d.ts +11 -0
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -0
- package/dist/core/utils/writeClientCoreIndex.js +16 -0
- package/dist/core/utils/writeClientFullIndex.d.ts +9 -0
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -0
- package/dist/core/utils/writeClientFullIndex.js +22 -0
- package/dist/core/utils/writeClientModels.d.ts +3 -2
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +5 -0
- package/dist/core/utils/writeClientModelsIndex.d.ts +12 -0
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -0
- package/dist/core/utils/writeClientModelsIndex.js +16 -0
- package/dist/core/utils/writeClientSchemas.d.ts +3 -2
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +5 -0
- package/dist/core/utils/writeClientSchemasIndex.d.ts +12 -0
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -0
- package/dist/core/utils/writeClientSchemasIndex.js +16 -0
- package/dist/core/utils/writeClientServices.d.ts +5 -4
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +4 -0
- package/dist/core/utils/writeClientServicesIndex.d.ts +12 -0
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -0
- package/dist/core/utils/writeClientServicesIndex.js +16 -0
- package/dist/core/utils/writeClientSimpleIndex.d.ts +9 -0
- package/dist/core/utils/writeClientSimpleIndex.d.ts.map +1 -0
- package/dist/core/utils/writeClientSimpleIndex.js +22 -0
- package/dist/templatesCompiled/cli/openApiConfig.d.ts +9 -0
- package/dist/templatesCompiled/cli/openApiConfig.d.ts.map +1 -0
- package/dist/templatesCompiled/cli/openApiConfig.js +21 -0
- package/dist/templatesCompiled/client/core/ApiError.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/ApiRequestOptions.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/ApiResult.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/CancelablePromise.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/HttpStatusCode.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/OpenAPI.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/axios/getHeaders.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/axios/getRequestBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/axios/getResponseBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/axios/getResponseHeader.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/axios/request.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/axios/sendRequest.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/fetch/getHeaders.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/fetch/getRequestBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/fetch/getResponseBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/fetch/getResponseHeader.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/fetch/request.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/fetch/sendRequest.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/catchErrors.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/getFormData.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/getQueryString.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/getUrl.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/isBinary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/isBlob.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/isDefined.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/isString.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/isStringWithValue.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/isSuccess.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/functions/resolve.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/node/getHeaders.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/node/getRequestBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/node/getResponseBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/node/getResponseHeader.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/node/request.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/node/sendRequest.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/request.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/xhr/getHeaders.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/xhr/getRequestBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/xhr/getResponseBody.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/xhr/getResponseHeader.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/xhr/request.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/xhr/sendRequest.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportModel.d.ts.map +1 -0
- package/dist/templatesCompiled/{exportModel.js → client/exportModel.js} +2 -2
- package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexCore.d.ts +9 -0
- package/dist/templatesCompiled/client/indexCore.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexCore.js +22 -0
- package/dist/templatesCompiled/{index.d.ts → client/indexFull.d.ts} +1 -1
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexModels.d.ts +15 -0
- package/dist/templatesCompiled/client/indexModels.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexModels.js +82 -0
- package/dist/templatesCompiled/client/indexServices.d.ts +10 -0
- package/dist/templatesCompiled/client/indexServices.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexServices.js +35 -0
- package/dist/templatesCompiled/client/indexShemas.d.ts +11 -0
- package/dist/templatesCompiled/client/indexShemas.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexShemas.js +47 -0
- package/dist/templatesCompiled/client/indexSimple.d.ts +21 -0
- package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -0
- package/dist/templatesCompiled/client/indexSimple.js +121 -0
- package/dist/templatesCompiled/client/partials/base.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/exportComposition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/exportEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/exportType.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/header.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/isNullable.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/isReadOnly.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/isRequired.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/isRequiredDefinition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/parameterValues.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/parameters.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/parametersDefinition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/result.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schemaArray.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schemaComposition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schemaDictionary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schemaEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schemaGeneric.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/schemaInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/type.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeArray.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeDictionary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeGeneric.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeIntersection.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeReference.d.ts.map +1 -0
- package/dist/templatesCompiled/client/partials/typeUnion.d.ts.map +1 -0
- package/package.json +7 -4
- package/dist/common/VersionedSchema/MultiOptionsMigrationPlan.d.ts.map +0 -1
- package/dist/common/VersionedSchema/MultiOptionsSchemaV1.d.ts +0 -6
- package/dist/common/VersionedSchema/MultiOptionsSchemaV1.d.ts.map +0 -1
- package/dist/common/VersionedSchema/MultiOptionsSchemaV2.d.ts +0 -6
- package/dist/common/VersionedSchema/MultiOptionsSchemaV2.d.ts.map +0 -1
- package/dist/common/VersionedSchema/MultiOptionsSchemaV3.d.ts +0 -5
- package/dist/common/VersionedSchema/MultiOptionsSchemaV3.d.ts.map +0 -1
- package/dist/common/VersionedSchema/MultiOptionsSchemaV4.d.ts +0 -6
- package/dist/common/VersionedSchema/MultiOptionsSchemaV4.d.ts.map +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersionedSchemas.d.ts +0 -3
- package/dist/common/VersionedSchema/MultiOptionsVersionedSchemas.d.ts.map +0 -1
- package/dist/common/VersionedSchema/OptionsMigrationPlans.d.ts.map +0 -1
- package/dist/common/VersionedSchema/OptionsMigrationPlans.js +0 -15
- package/dist/common/VersionedSchema/OptionsSchemaV1.d.ts +0 -6
- package/dist/common/VersionedSchema/OptionsSchemaV1.d.ts.map +0 -1
- package/dist/common/VersionedSchema/OptionsSchemaV2.d.ts +0 -6
- package/dist/common/VersionedSchema/OptionsSchemaV2.d.ts.map +0 -1
- package/dist/common/VersionedSchema/OptionsSchemaV3.d.ts +0 -5
- package/dist/common/VersionedSchema/OptionsSchemaV3.d.ts.map +0 -1
- package/dist/common/VersionedSchema/OptionsVersionedSchemas.d.ts +0 -3
- package/dist/common/VersionedSchema/OptionsVersionedSchemas.d.ts.map +0 -1
- package/dist/core/types/Enums.d.ts +0 -14
- package/dist/core/types/Enums.d.ts.map +0 -1
- package/dist/core/types/Models.d.ts +0 -37
- package/dist/core/types/Models.d.ts.map +0 -1
- package/dist/core/types/shared/ConverterData.model.d.ts +0 -7
- package/dist/core/types/shared/ConverterData.model.d.ts.map +0 -1
- package/dist/core/utils/__tests__/writeClientIndex.test.d.ts +0 -2
- package/dist/core/utils/__tests__/writeClientIndex.test.d.ts.map +0 -1
- package/dist/core/utils/writeClientIndex.d.ts +0 -59
- package/dist/core/utils/writeClientIndex.d.ts.map +0 -1
- package/dist/core/utils/writeClientIndex.js +0 -27
- package/dist/templatesCompiled/core/ApiError.d.ts.map +0 -1
- package/dist/templatesCompiled/core/ApiRequestOptions.d.ts.map +0 -1
- package/dist/templatesCompiled/core/ApiResult.d.ts.map +0 -1
- package/dist/templatesCompiled/core/CancelablePromise.d.ts.map +0 -1
- package/dist/templatesCompiled/core/HttpStatusCode.d.ts.map +0 -1
- package/dist/templatesCompiled/core/OpenAPI.d.ts.map +0 -1
- package/dist/templatesCompiled/core/axios/getHeaders.d.ts.map +0 -1
- package/dist/templatesCompiled/core/axios/getRequestBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/axios/getResponseBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/axios/getResponseHeader.d.ts.map +0 -1
- package/dist/templatesCompiled/core/axios/request.d.ts.map +0 -1
- package/dist/templatesCompiled/core/axios/sendRequest.d.ts.map +0 -1
- package/dist/templatesCompiled/core/fetch/getHeaders.d.ts.map +0 -1
- package/dist/templatesCompiled/core/fetch/getRequestBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/fetch/getResponseBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/fetch/getResponseHeader.d.ts.map +0 -1
- package/dist/templatesCompiled/core/fetch/request.d.ts.map +0 -1
- package/dist/templatesCompiled/core/fetch/sendRequest.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/catchErrors.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/getFormData.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/getQueryString.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/getUrl.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/isBinary.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/isBlob.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/isDefined.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/isString.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/isStringWithValue.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/isSuccess.d.ts.map +0 -1
- package/dist/templatesCompiled/core/functions/resolve.d.ts.map +0 -1
- package/dist/templatesCompiled/core/node/getHeaders.d.ts.map +0 -1
- package/dist/templatesCompiled/core/node/getRequestBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/node/getResponseBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/node/getResponseHeader.d.ts.map +0 -1
- package/dist/templatesCompiled/core/node/request.d.ts.map +0 -1
- package/dist/templatesCompiled/core/node/sendRequest.d.ts.map +0 -1
- package/dist/templatesCompiled/core/request.d.ts.map +0 -1
- package/dist/templatesCompiled/core/xhr/getHeaders.d.ts.map +0 -1
- package/dist/templatesCompiled/core/xhr/getRequestBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/xhr/getResponseBody.d.ts.map +0 -1
- package/dist/templatesCompiled/core/xhr/getResponseHeader.d.ts.map +0 -1
- package/dist/templatesCompiled/core/xhr/request.d.ts.map +0 -1
- package/dist/templatesCompiled/core/xhr/sendRequest.d.ts.map +0 -1
- package/dist/templatesCompiled/exportModel.d.ts.map +0 -1
- package/dist/templatesCompiled/exportSchema.d.ts.map +0 -1
- package/dist/templatesCompiled/exportService.d.ts.map +0 -1
- package/dist/templatesCompiled/index.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/base.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/exportComposition.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/exportEnum.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/exportInterface.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/exportType.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/header.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/isNullable.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/isReadOnly.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/isRequired.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/isRequiredDefinition.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/parameterValues.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/parameters.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/parametersDefinition.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/result.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schema.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schemaArray.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schemaComposition.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schemaDictionary.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schemaEnum.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schemaGeneric.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/schemaInterface.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/serviceOption.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/type.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeArray.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeDictionary.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeEnum.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeGeneric.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeInterface.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeIntersection.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeReference.d.ts.map +0 -1
- package/dist/templatesCompiled/partials/typeUnion.d.ts.map +0 -1
- /package/dist/{core/types/Models.js → cli/initOpenApiConfig/Types.js} +0 -0
- /package/dist/core/types/{shared/ConverterData.model.js → base/ClientArtifacts.model.js} +0 -0
- /package/dist/templatesCompiled/{core → client/core}/ApiError.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/ApiError.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/ApiRequestOptions.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/ApiRequestOptions.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/ApiResult.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/ApiResult.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/CancelablePromise.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/CancelablePromise.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/HttpStatusCode.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/HttpStatusCode.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/OpenAPI.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/OpenAPI.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getHeaders.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getHeaders.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getRequestBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getRequestBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getResponseBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getResponseBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getResponseHeader.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/getResponseHeader.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/request.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/request.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/sendRequest.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/axios/sendRequest.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getHeaders.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getHeaders.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getRequestBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getRequestBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getResponseBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getResponseBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getResponseHeader.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/getResponseHeader.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/request.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/request.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/sendRequest.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/fetch/sendRequest.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/catchErrors.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/catchErrors.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/getFormData.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/getFormData.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/getQueryString.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/getQueryString.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/getUrl.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/getUrl.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isBinary.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isBinary.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isBlob.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isBlob.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isDefined.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isDefined.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isString.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isString.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isStringWithValue.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isStringWithValue.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isSuccess.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/isSuccess.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/resolve.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/functions/resolve.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getHeaders.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getHeaders.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getRequestBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getRequestBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getResponseBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getResponseBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getResponseHeader.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/getResponseHeader.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/request.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/request.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/sendRequest.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/node/sendRequest.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/request.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/request.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getHeaders.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getHeaders.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getRequestBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getRequestBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getResponseBody.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getResponseBody.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getResponseHeader.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/getResponseHeader.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/request.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/request.js +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/sendRequest.d.ts +0 -0
- /package/dist/templatesCompiled/{core → client/core}/xhr/sendRequest.js +0 -0
- /package/dist/templatesCompiled/{exportModel.d.ts → client/exportModel.d.ts} +0 -0
- /package/dist/templatesCompiled/{exportSchema.d.ts → client/exportSchema.d.ts} +0 -0
- /package/dist/templatesCompiled/{exportSchema.js → client/exportSchema.js} +0 -0
- /package/dist/templatesCompiled/{exportService.d.ts → client/exportService.d.ts} +0 -0
- /package/dist/templatesCompiled/{exportService.js → client/exportService.js} +0 -0
- /package/dist/templatesCompiled/{index.js → client/indexFull.js} +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/base.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/base.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportComposition.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportComposition.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportEnum.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportEnum.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportInterface.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportInterface.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportType.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/exportType.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/header.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/header.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isNullable.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isNullable.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isReadOnly.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isReadOnly.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isRequired.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isRequired.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isRequiredDefinition.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/isRequiredDefinition.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/parameterValues.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/parameterValues.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/parameters.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/parameters.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/parametersDefinition.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/parametersDefinition.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/result.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/result.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schema.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schema.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaArray.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaArray.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaComposition.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaComposition.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaDictionary.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaDictionary.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaEnum.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaEnum.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaGeneric.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaGeneric.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaInterface.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/schemaInterface.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/serviceOption.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/serviceOption.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/type.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/type.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeArray.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeArray.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeDictionary.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeDictionary.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeEnum.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeEnum.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeGeneric.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeGeneric.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeInterface.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeInterface.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeIntersection.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeIntersection.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeReference.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeReference.js +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeUnion.d.ts +0 -0
- /package/dist/templatesCompiled/{partials → client/partials}/typeUnion.js +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { HttpClient } from '../types/
|
|
1
|
+
import { HttpClient } from '../types/enums/HttpClient.enum';
|
|
2
2
|
import type { Model } from '../types/shared/Model.model';
|
|
3
|
+
import { WriteClient } from '../WriteClient';
|
|
3
4
|
import { Templates } from './registerHandlebarTemplates';
|
|
4
5
|
/**
|
|
5
6
|
* @param models Array of Models to write
|
|
@@ -23,6 +24,6 @@ interface IWriteClientModels {
|
|
|
23
24
|
* @param httpClient The selected httpClient (fetch, xhr or node)
|
|
24
25
|
* @param useUnionTypes Use union types instead of enums
|
|
25
26
|
*/
|
|
26
|
-
export declare function writeClientModels(options: IWriteClientModels): Promise<void>;
|
|
27
|
+
export declare function writeClientModels(this: WriteClient, options: IWriteClientModels): Promise<void>;
|
|
27
28
|
export {};
|
|
28
29
|
//# sourceMappingURL=writeClientModels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientModels.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"writeClientModels.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;;;GAMG;AACH,UAAU,kBAAkB;IACxB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoCrG"}
|
|
@@ -15,6 +15,7 @@ const format_1 = require("./format");
|
|
|
15
15
|
*/
|
|
16
16
|
async function writeClientModels(options) {
|
|
17
17
|
const { models, templates, outputModelsPath, httpClient, useUnionTypes } = options;
|
|
18
|
+
this.logger.info('Recording of model files begins');
|
|
18
19
|
for (const model of models) {
|
|
19
20
|
const modelFolderPath = model?.path;
|
|
20
21
|
if (!modelFolderPath) {
|
|
@@ -23,9 +24,11 @@ async function writeClientModels(options) {
|
|
|
23
24
|
const dir = (0, pathHelpers_1.dirName)(modelFolderPath);
|
|
24
25
|
if (dir) {
|
|
25
26
|
const directory = (0, pathHelpers_1.resolve)(outputModelsPath, dir);
|
|
27
|
+
this.logger.info(`A directory is being created: ${directory}`);
|
|
26
28
|
(0, fs_1.mkdirSync)(directory, { recursive: true });
|
|
27
29
|
}
|
|
28
30
|
const file = (0, pathHelpers_1.resolve)(outputModelsPath, `${modelFolderPath}.ts`);
|
|
31
|
+
this.logger.info(`The recording of the file data begins: ${file}`);
|
|
29
32
|
const templateResult = templates.exports.model({
|
|
30
33
|
...model,
|
|
31
34
|
httpClient,
|
|
@@ -33,5 +36,7 @@ async function writeClientModels(options) {
|
|
|
33
36
|
});
|
|
34
37
|
const formattedValue = await (0, format_1.format)(templateResult);
|
|
35
38
|
await fileSystem_1.fileSystem.writeFile(file, formattedValue);
|
|
39
|
+
this.logger.info(`File recording completed: ${file}`);
|
|
36
40
|
}
|
|
41
|
+
this.logger.info('Model file recording completed successfully');
|
|
37
42
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from '../types/shared/Model.model';
|
|
2
|
+
import { WriteClient } from '../WriteClient';
|
|
3
|
+
import { Templates } from './registerHandlebarTemplates';
|
|
4
|
+
interface IOptionsProps {
|
|
5
|
+
models: Model[];
|
|
6
|
+
templates: Templates;
|
|
7
|
+
outputModelsPath: string;
|
|
8
|
+
useSeparatedIndexes?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function writeClientModelsIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=writeClientModelsIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeClientModelsIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModelsIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBAcrF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeClientModelsIndex = writeClientModelsIndex;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
|
|
6
|
+
async function writeClientModelsIndex(options) {
|
|
7
|
+
const { models, templates, outputModelsPath, useSeparatedIndexes } = options;
|
|
8
|
+
if (!useSeparatedIndexes) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const filePath = (0, path_1.resolve)(outputModelsPath, 'index.ts');
|
|
12
|
+
this.logger.info(`Data has been written to a file: ${filePath}`);
|
|
13
|
+
const content = templates.indexes.models({ models });
|
|
14
|
+
await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
|
|
15
|
+
this.logger.info(`Writing to the file is completed: ${filePath}`);
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { HttpClient } from '../types/
|
|
1
|
+
import { HttpClient } from '../types/enums/HttpClient.enum';
|
|
2
2
|
import type { Model } from '../types/shared/Model.model';
|
|
3
|
+
import { WriteClient } from '../WriteClient';
|
|
3
4
|
import { Templates } from './registerHandlebarTemplates';
|
|
4
5
|
/**
|
|
5
6
|
* @param models Array of Models to write
|
|
@@ -23,6 +24,6 @@ interface IWriteClientSchemas {
|
|
|
23
24
|
* @param httpClient The selected httpClient (fetch, xhr or node)
|
|
24
25
|
* @param useUnionTypes Use union types instead of enums
|
|
25
26
|
*/
|
|
26
|
-
export declare function writeClientSchemas(options: IWriteClientSchemas): Promise<void>;
|
|
27
|
+
export declare function writeClientSchemas(this: WriteClient, options: IWriteClientSchemas): Promise<void>;
|
|
27
28
|
export {};
|
|
28
29
|
//# sourceMappingURL=writeClientSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;;;GAMG;AACH,UAAU,mBAAmB;IACzB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BvG"}
|
|
@@ -15,14 +15,17 @@ const format_1 = require("./format");
|
|
|
15
15
|
*/
|
|
16
16
|
async function writeClientSchemas(options) {
|
|
17
17
|
const { models, templates, outputSchemasPath, httpClient, useUnionTypes } = options;
|
|
18
|
+
this.logger.info('The recording of model validation schema files begins.');
|
|
18
19
|
for (const model of models) {
|
|
19
20
|
const modelFolderPath = model?.path;
|
|
20
21
|
const dir = (0, pathHelpers_1.dirName)(modelFolderPath);
|
|
21
22
|
if (dir) {
|
|
22
23
|
const directory = (0, pathHelpers_1.resolve)(outputSchemasPath, dir);
|
|
24
|
+
this.logger.info(`A directory is being created: ${directory}`);
|
|
23
25
|
(0, fs_1.mkdirSync)(directory, { recursive: true });
|
|
24
26
|
}
|
|
25
27
|
const file = (0, pathHelpers_1.resolve)(outputSchemasPath, `${modelFolderPath}Schema.ts`);
|
|
28
|
+
this.logger.info(`The recording of the file data begins: ${file}`);
|
|
26
29
|
const templateResult = templates.exports.schema({
|
|
27
30
|
...model,
|
|
28
31
|
httpClient,
|
|
@@ -30,5 +33,7 @@ async function writeClientSchemas(options) {
|
|
|
30
33
|
});
|
|
31
34
|
const formattedValue = await (0, format_1.format)(templateResult);
|
|
32
35
|
await fileSystem_1.fileSystem.writeFile(file, formattedValue);
|
|
36
|
+
this.logger.info(`File recording completed: ${file}`);
|
|
33
37
|
}
|
|
38
|
+
this.logger.info('The recording of model validation schema files has been completed successfully');
|
|
34
39
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from '../types/shared/Model.model';
|
|
2
|
+
import { WriteClient } from '../WriteClient';
|
|
3
|
+
import { Templates } from './registerHandlebarTemplates';
|
|
4
|
+
interface IOptionsProps {
|
|
5
|
+
models: Model[];
|
|
6
|
+
templates: Templates;
|
|
7
|
+
outputSchemasPath: string;
|
|
8
|
+
useSeparatedIndexes?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function writeClientSchemasIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=writeClientSchemasIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeClientSchemasIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemasIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBActF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeClientSchemasIndex = writeClientSchemasIndex;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
|
|
6
|
+
async function writeClientSchemasIndex(options) {
|
|
7
|
+
const { models, templates, outputSchemasPath, useSeparatedIndexes } = options;
|
|
8
|
+
if (!useSeparatedIndexes) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const filePath = (0, path_1.resolve)(outputSchemasPath, 'index.ts');
|
|
12
|
+
this.logger.info(`Data has been written to a file: ${filePath}`);
|
|
13
|
+
const content = templates.indexes.schemas({ schemas: models });
|
|
14
|
+
await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
|
|
15
|
+
this.logger.info(`Writing to the file is completed: ${filePath}`);
|
|
16
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OutputPaths } from '../types/base/OutputPaths.model';
|
|
2
|
+
import { HttpClient } from '../types/enums/HttpClient.enum';
|
|
3
3
|
import type { Service } from '../types/shared/Service.model';
|
|
4
|
+
import { WriteClient } from '../WriteClient';
|
|
4
5
|
import { Templates } from './registerHandlebarTemplates';
|
|
5
|
-
type TServeceOutputsPath = Omit<
|
|
6
|
+
type TServeceOutputsPath = Omit<OutputPaths, 'output' | 'outputSchemas'>;
|
|
6
7
|
/**
|
|
7
8
|
* @param services Array of Services to write
|
|
8
9
|
* @param templates The loaded handlebar templates
|
|
@@ -30,6 +31,6 @@ interface IWriteClientServices {
|
|
|
30
31
|
* @param useUnionTypes Use union types instead of enums
|
|
31
32
|
* @param useOptions Use options or arguments functions
|
|
32
33
|
*/
|
|
33
|
-
export declare function writeClientServices(options: IWriteClientServices): Promise<void>;
|
|
34
|
+
export declare function writeClientServices(this: WriteClient, options: IWriteClientServices): Promise<void>;
|
|
34
35
|
export {};
|
|
35
36
|
//# sourceMappingURL=writeClientServices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;AAEzE;;;;;;;;GAQG;AACH,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BzG"}
|
|
@@ -15,8 +15,10 @@ const format_1 = require("./format");
|
|
|
15
15
|
*/
|
|
16
16
|
async function writeClientServices(options) {
|
|
17
17
|
const { services, templates, outputPaths, httpClient, useUnionTypes, useOptions, useCancelableRequest } = options;
|
|
18
|
+
this.logger.info('Recording of service files begins');
|
|
18
19
|
for (const service of services) {
|
|
19
20
|
const file = (0, path_1.resolve)(outputPaths.outputServices, `${service.name}.ts`);
|
|
21
|
+
this.logger.info(`The recording of the file data begins: ${file}`);
|
|
20
22
|
const templateResult = templates.exports.service({
|
|
21
23
|
...service,
|
|
22
24
|
httpClient,
|
|
@@ -28,5 +30,7 @@ async function writeClientServices(options) {
|
|
|
28
30
|
});
|
|
29
31
|
const formattedValue = await (0, format_1.format)(templateResult);
|
|
30
32
|
await fileSystem_1.fileSystem.writeFile(file, formattedValue);
|
|
33
|
+
this.logger.info(`File recording completed: ${file}`);
|
|
31
34
|
}
|
|
35
|
+
this.logger.info('Service file recording completed successfully');
|
|
32
36
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Service } from '../types/shared/Service.model';
|
|
2
|
+
import { WriteClient } from '../WriteClient';
|
|
3
|
+
import { Templates } from './registerHandlebarTemplates';
|
|
4
|
+
interface IOptionsProps {
|
|
5
|
+
services: Service[];
|
|
6
|
+
templates: Templates;
|
|
7
|
+
outputServices: string;
|
|
8
|
+
useSeparatedIndexes?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function writeClientServicesIndex(this: WriteClient, options: IOptionsProps): Promise<void>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=writeClientServicesIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeClientServicesIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServicesIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,UAAU,aAAa;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,iBAcvF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeClientServicesIndex = writeClientServicesIndex;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
|
|
6
|
+
async function writeClientServicesIndex(options) {
|
|
7
|
+
const { services, templates, outputServices, useSeparatedIndexes } = options;
|
|
8
|
+
if (!useSeparatedIndexes) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const filePath = (0, path_1.resolve)(outputServices, 'index.ts');
|
|
12
|
+
this.logger.info(`Data has been written to a file: ${filePath}`);
|
|
13
|
+
const content = templates.indexes.services({ services });
|
|
14
|
+
await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
|
|
15
|
+
this.logger.info(`Writing to the file is completed: ${filePath}`);
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SimpleClientArtifacts } from '../types/base/SimpleClientArtifacts.model';
|
|
2
|
+
import { WriteClient } from '../WriteClient';
|
|
3
|
+
/**
|
|
4
|
+
* Generate the OpenAPI client index file using the Handlebar template and write it to disk.
|
|
5
|
+
* The index file just contains all the exports you need to use the client as a standalone
|
|
6
|
+
* library. But yuo can also import individual models and services directly.
|
|
7
|
+
*/
|
|
8
|
+
export declare function writeClientSimpleIndex(this: WriteClient, options: SimpleClientArtifacts): Promise<void>;
|
|
9
|
+
//# sourceMappingURL=writeClientSimpleIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeClientSimpleIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSimpleIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB7G"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeClientSimpleIndex = writeClientSimpleIndex;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const fileSystem_1 = require("./fileSystem");
|
|
6
|
+
/**
|
|
7
|
+
* Generate the OpenAPI client index file using the Handlebar template and write it to disk.
|
|
8
|
+
* The index file just contains all the exports you need to use the client as a standalone
|
|
9
|
+
* library. But yuo can also import individual models and services directly.
|
|
10
|
+
*/
|
|
11
|
+
async function writeClientSimpleIndex(options) {
|
|
12
|
+
const { templates, outputPath, core, models, schemas, services } = options;
|
|
13
|
+
const resolvePathIndex = (0, path_1.resolve)(outputPath, 'index.ts');
|
|
14
|
+
this.logger.info(`The recording of the file data begins: ${resolvePathIndex}`);
|
|
15
|
+
await fileSystem_1.fileSystem.writeFile(resolvePathIndex, templates.indexes.simple({
|
|
16
|
+
core,
|
|
17
|
+
models,
|
|
18
|
+
schemas,
|
|
19
|
+
services,
|
|
20
|
+
}));
|
|
21
|
+
this.logger.info(`File recording completed: ${resolvePathIndex}`);
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
3
|
+
"3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
4
|
+
compiler: (string | number)[];
|
|
5
|
+
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
6
|
+
useData: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=openApiConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openApiConfig.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/cli/openApiConfig.ts"],"names":[],"mappings":";;;;;;;AAMA,wBAaiB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// This is an automatically generated file for the hbs template.
|
|
4
|
+
// You don't need to change it, run npm run build:hbs to update it.
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint: disable */
|
|
7
|
+
/* eslint: disable */
|
|
8
|
+
// @ts-nocheck
|
|
9
|
+
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
|
+
return "{\n \"items\": [\n {\n \"input\": \"/folder/pogect/openapi/spec_file.yaml\",\n \"output\": \"./generated/rest-api\"\n }\n ],\n \"httpClient\": \"fetch\",\n \"sortByRequired\": true\n}\n";
|
|
11
|
+
}, "3": function (container, depth0, helpers, partials, data) {
|
|
12
|
+
return "{\n \"input\": \"/folder/pogect/openapi/spec_file.yaml\",\n \"output\": \"./generated/rest-api\",\n \"httpClient\": \"fetch\",\n \"sortByRequired\": true\n}\n";
|
|
13
|
+
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
14
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
15
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
16
|
+
return parent[propertyName];
|
|
17
|
+
}
|
|
18
|
+
return undefined;
|
|
19
|
+
};
|
|
20
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "useMultyOptions"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(3, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 19, "column": 7 } } })) != null ? stack1 : "");
|
|
21
|
+
}, "useData": true };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiError.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/ApiError.ts"],"names":[],"mappings":";;;;;;AAMA,wBAUmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiRequestOptions.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/ApiRequestOptions.ts"],"names":[],"mappings":";;;;;;AAMA,wBAUmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiResult.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/ApiResult.ts"],"names":[],"mappings":";;;;;;AAMA,wBAUmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelablePromise.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/CancelablePromise.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpStatusCode.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/HttpStatusCode.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenAPI.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/OpenAPI.ts"],"names":[],"mappings":";;;;;;AAMA,wBAcmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeaders.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/axios/getHeaders.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/axios/getRequestBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/axios/getResponseBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseHeader.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/axios/getResponseHeader.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/axios/request.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAiDmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendRequest.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/axios/sendRequest.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAsBiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeaders.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/fetch/getHeaders.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/fetch/getRequestBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/fetch/getResponseBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseHeader.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/fetch/getResponseHeader.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/fetch/request.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBA+CmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendRequest.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/fetch/sendRequest.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAsBiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catchErrors.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/catchErrors.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormData.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/getFormData.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getQueryString.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/getQueryString.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUrl.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/getUrl.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBinary.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/isBinary.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBlob.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/isBlob.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDefined.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/isDefined.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isString.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/isString.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isStringWithValue.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/isStringWithValue.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isSuccess.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/isSuccess.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/functions/resolve.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeaders.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/node/getHeaders.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/node/getRequestBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/node/getResponseBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseHeader.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/node/getResponseHeader.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/node/request.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBA+CmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendRequest.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/node/sendRequest.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAsBiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/core/request.ts"],"names":[],"mappings":";;;;;;;;;;AAMA,wBAgDmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeaders.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/getHeaders.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/getRequestBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseBody.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/getResponseBody.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResponseHeader.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/getResponseHeader.ts"],"names":[],"mappings":";;;;;AAMA,wBAEiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/request.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAiDmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendRequest.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/core/xhr/sendRequest.ts"],"names":[],"mappings":";;;;;;;;;;;AAMA,wBA4BiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportModel.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAMA,wBAkHmC"}
|
|
@@ -25,8 +25,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
25
25
|
return "import type { "
|
|
26
26
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
27
27
|
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 59 } } })) != null ? stack1 : "")
|
|
28
|
-
+ " } from '
|
|
29
|
-
+ ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 6, "column":
|
|
28
|
+
+ " } from '"
|
|
29
|
+
+ ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 6, "column": 71 }, "end": { "line": 6, "column": 75 } }), depth0)) != null ? stack1 : "")
|
|
30
30
|
+ "';\n";
|
|
31
31
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
32
|
var stack1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportSchema.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportSchema.ts"],"names":[],"mappings":";;;;;;AAMA,wBAcmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsNoD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
3
|
+
compiler: (string | number)[];
|
|
4
|
+
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
|
+
usePartial: boolean;
|
|
6
|
+
useData: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=indexCore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexCore.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexCore.ts"],"names":[],"mappings":";;;;;;;AAMA,wBAcmC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// This is an automatically generated file for the hbs template.
|
|
4
|
+
// You don't need to change it, run npm run build:hbs to update it.
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint: disable */
|
|
7
|
+
/* eslint: disable */
|
|
8
|
+
// @ts-nocheck
|
|
9
|
+
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
|
+
return "export { CancelablePromise } from './CancelablePromise';\n";
|
|
11
|
+
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
12
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14
|
+
return parent[propertyName];
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
};
|
|
18
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
19
|
+
+ "\nexport { ApiError } from './ApiError';\n"
|
|
20
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 7 } } })) != null ? stack1 : "")
|
|
21
|
+
+ "export { OpenAPI } from './OpenAPI';\nexport type { TOpenAPIConfig } from './OpenAPI';\n";
|
|
22
|
+
}, "usePartial": true, "useData": true };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA8LoD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"1": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
3
|
+
"2": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
4
|
+
"3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
|
+
"4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
|
+
"6": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
7
|
+
"7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
+
"9": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
9
|
+
compiler: (string | number)[];
|
|
10
|
+
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
11
|
+
usePartial: boolean;
|
|
12
|
+
useData: boolean;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=indexModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexModels.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexModels.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAMA,wBAiFmC"}
|