ts-openapi-codegen 1.0.0-beta.8 → 2.0.0-beta.0
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 +221 -123
- package/README.rus.md +725 -0
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts +12 -0
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +66 -0
- package/dist/cli/checkAndUpdateConfig/constants.d.ts +13 -0
- package/dist/cli/checkAndUpdateConfig/constants.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/constants.js +29 -0
- package/dist/cli/checkAndUpdateConfig/types.d.ts +20 -0
- package/dist/cli/checkAndUpdateConfig/types.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/types.js +12 -0
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts +12 -0
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +56 -0
- package/dist/cli/checkAndUpdateConfig/utils/generateConfigExample.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/generateConfigExample.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/generateConfigExample.js +11 -0
- package/dist/cli/checkAndUpdateConfig/utils/prepareConfigData.d.ts +14 -0
- package/dist/cli/checkAndUpdateConfig/utils/prepareConfigData.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/prepareConfigData.js +30 -0
- package/dist/cli/checkAndUpdateConfig/utils/removeDefaultConfigValues.d.ts +17 -0
- package/dist/cli/checkAndUpdateConfig/utils/removeDefaultConfigValues.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/removeDefaultConfigValues.js +29 -0
- package/dist/cli/checkAndUpdateConfig/utils/rewriteConfigFile.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/rewriteConfigFile.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/rewriteConfigFile.js +11 -0
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.d.ts +29 -0
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.js +49 -0
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.d.ts +6 -0
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.js +22 -0
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts +17 -0
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +53 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.d.ts +34 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.js +41 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.d.ts +6 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.js +18 -0
- package/dist/cli/generate/runGenerateOpenApi.d.ts +2 -2
- package/dist/cli/generate/runGenerateOpenApi.d.ts.map +1 -1
- package/dist/cli/generate/runGenerateOpenApi.js +20 -37
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +56 -30
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.js +11 -18
- package/dist/cli/interactive/confirmDialog.d.ts +17 -0
- package/dist/cli/interactive/confirmDialog.d.ts.map +1 -0
- package/dist/cli/interactive/confirmDialog.js +36 -0
- package/dist/cli/interactive/constants.d.ts +7 -0
- package/dist/cli/interactive/constants.d.ts.map +1 -0
- package/dist/cli/interactive/constants.js +25 -0
- package/dist/cli/interactive/selectDialog.d.ts +17 -0
- package/dist/cli/interactive/selectDialog.d.ts.map +1 -0
- package/dist/cli/interactive/selectDialog.js +43 -0
- package/dist/cli/interactive/types.d.ts +40 -0
- package/dist/cli/interactive/types.d.ts.map +1 -0
- package/dist/cli/interactive/types.js +12 -0
- package/dist/common/Consts.d.ts +4 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +31 -1
- package/dist/common/Enums.d.ts +4 -0
- package/dist/common/Enums.d.ts.map +1 -1
- package/dist/common/Enums.js +6 -1
- package/dist/common/Logger.d.ts +1 -1
- package/dist/common/Logger.d.ts.map +1 -1
- package/dist/common/Logger.js +7 -39
- package/dist/common/LoggerMessages.d.ts +64 -0
- package/dist/common/LoggerMessages.d.ts.map +1 -0
- package/dist/common/LoggerMessages.js +82 -0
- package/dist/common/TRawOptions.d.ts +40 -0
- package/dist/common/TRawOptions.d.ts.map +1 -0
- package/dist/common/UpdateNotifier.d.ts +36 -2
- package/dist/common/UpdateNotifier.d.ts.map +1 -1
- package/dist/common/UpdateNotifier.js +150 -57
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts +8 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +31 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts +8 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.js +33 -0
- package/dist/common/VersionedSchema/Enums.d.ts +2 -1
- package/dist/common/VersionedSchema/Enums.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Enums.js +1 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +10 -19
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +10 -10
- package/dist/common/VersionedSchema/Types.d.ts +10 -0
- package/dist/common/VersionedSchema/Types.d.ts.map +1 -1
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.d.ts +3 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.d.ts.map +1 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.js +28 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.d.ts +7 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.d.ts.map +1 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.js +42 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.d.ts +3 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.d.ts.map +1 -0
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.js +10 -0
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.d.ts +11 -0
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.js +19 -0
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.d.ts +7 -0
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.js +15 -0
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +1 -7
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/getCurrentErrorMessage.d.ts +3 -0
- package/dist/common/VersionedSchema/Utils/getCurrentErrorMessage.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/getCurrentErrorMessage.js +14 -0
- package/dist/common/VersionedSchema/Utils/getKeyByMapValue.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/getKeyByMapValue.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/getKeyByMapValue.js +11 -0
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +5 -2
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +31 -17
- package/dist/common/utils/__tests__/__mock__/mockJoiSchema.d.ts.map +1 -0
- package/dist/common/utils/__tests__/convertArrayToObject.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/convertArrayToObject.test.js +14 -14
- package/dist/common/utils/__tests__/determineBestMatchingSchemaVersion.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/determineBestMatchingSchemaVersion.test.js +5 -5
- package/dist/common/utils/__tests__/generateKeyMappingForInvalidKeys.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/generateKeyMappingForInvalidKeys.test.js +4 -4
- package/dist/common/utils/__tests__/getUniqueKeysFromSchemas.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/getUniqueKeysFromSchemas.test.js +4 -4
- package/dist/common/utils/__tests__/getUniqueObjectKeys.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/getUniqueObjectKeys.test.js +5 -5
- package/dist/common/utils/__tests__/mergeObjectSchemas.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/mergeObjectSchemas.test.js +5 -5
- package/dist/common/utils/__tests__/migrationForMultiOptions.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/migrationForMultiOptions.test.js +21 -15
- package/dist/common/utils/__tests__/migrationForOptions.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/migrationForOptions.test.js +13 -9
- package/dist/common/utils/__tests__/pathHelpers.test.d.ts.map +1 -0
- package/dist/{core → common}/utils/__tests__/pathHelpers.test.js +8 -8
- package/dist/common/utils/__tests__/replaceInvalidKeysWithMappedNames.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/replaceInvalidKeysWithMappedNames.test.js +5 -5
- package/dist/common/utils/__tests__/validateAndSuggestKeyCorrections.test.d.ts.map +1 -0
- package/dist/common/{__tests__ → utils/__tests__}/validateAndSuggestKeyCorrections.test.js +5 -5
- package/dist/common/utils/convertArrayToObject.d.ts +2 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -0
- package/dist/common/{Utils.js → utils/convertArrayToObject.js} +0 -20
- package/dist/{core/utils/fileSystem.d.ts → common/utils/fileSystemHelpers.d.ts} +8 -5
- package/dist/common/utils/fileSystemHelpers.d.ts.map +1 -0
- package/dist/common/utils/fileSystemHelpers.js +85 -0
- package/dist/common/utils/format.d.ts +3 -0
- package/dist/common/utils/format.d.ts.map +1 -0
- package/dist/{core → common}/utils/format.js +2 -2
- package/dist/common/utils/loadConfigIfExists.d.ts +2 -0
- package/dist/common/utils/loadConfigIfExists.d.ts.map +1 -0
- package/dist/common/utils/loadConfigIfExists.js +22 -0
- package/dist/common/utils/pathHelpers.d.ts +6 -0
- package/dist/common/utils/pathHelpers.d.ts.map +1 -0
- package/dist/{core → common}/utils/pathHelpers.js +16 -20
- package/dist/common/utils/safeHasOwn.d.ts +2 -0
- package/dist/common/utils/safeHasOwn.d.ts.map +1 -0
- package/dist/common/utils/safeHasOwn.js +9 -0
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +3 -3
- package/dist/core/OpenApiClient.d.ts +13 -0
- package/dist/core/OpenApiClient.d.ts.map +1 -0
- package/dist/core/OpenApiClient.js +175 -0
- package/dist/core/WriteClient.d.ts +1 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +20 -20
- package/dist/core/__tests__/WriteClient.test.js +61 -60
- package/dist/core/api/v2/Parser.d.ts.map +1 -1
- package/dist/core/api/v2/Parser.js +2 -9
- package/dist/core/api/v2/parser/__tests__/getServer.test.js +2 -2
- package/dist/core/api/v2/parser/__tests__/getType.test.js +3 -3
- package/dist/core/api/v2/parser/getModelProperties.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModelProperties.js +2 -5
- package/dist/core/api/v2/parser/getModels.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModels.js +2 -1
- package/dist/core/api/v2/parser/getOperationParameter.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationParameter.js +2 -1
- package/dist/core/api/v2/parser/getOperationResponse.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponse.js +2 -5
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +2 -5
- package/dist/core/api/v2/parser/getServices.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getServices.js +2 -5
- package/dist/core/api/v2/parser/getType.js +4 -4
- package/dist/core/api/v3/Parser.d.ts +1 -1
- package/dist/core/api/v3/Parser.d.ts.map +1 -1
- package/dist/core/api/v3/Parser.js +2 -9
- package/dist/core/api/v3/parser/__tests__/getServer.test.js +3 -3
- package/dist/core/api/v3/parser/__tests__/getType.test.js +3 -3
- package/dist/core/api/v3/parser/getModelProperties.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModelProperties.js +2 -5
- package/dist/core/api/v3/parser/getModels.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModels.js +2 -1
- package/dist/core/api/v3/parser/getOperationResponse.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponse.js +2 -5
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +2 -5
- package/dist/core/api/v3/parser/getServer.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getServer.js +2 -5
- package/dist/core/api/v3/parser/getServices.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getServices.js +2 -5
- package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +5 -13
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +6 -161
- package/dist/core/types/Consts.d.ts +5 -1
- package/dist/core/types/Consts.d.ts.map +1 -1
- package/dist/core/types/Consts.js +6 -2
- package/dist/core/types/base/Root.model.d.ts +1 -0
- package/dist/core/types/base/Root.model.d.ts.map +1 -1
- package/dist/core/utils/__tests__/escapeDescription.test.js +3 -3
- package/dist/core/utils/__tests__/escapeName.test.js +2 -2
- package/dist/core/utils/__tests__/flatMap.test.js +2 -2
- package/dist/core/utils/__tests__/getAbsolutePath.test.js +6 -6
- package/dist/core/utils/__tests__/getClassName.test.js +2 -2
- package/dist/core/utils/__tests__/getComment.test.js +2 -2
- package/dist/core/utils/__tests__/getEnumFromDescription.test.js +2 -2
- package/dist/core/utils/__tests__/getFileName.test.js +2 -2
- package/dist/core/utils/__tests__/getGatheringRefs.test.js +2 -2
- package/dist/core/utils/__tests__/getMappedType.test.js +2 -2
- package/dist/core/utils/__tests__/getModelNames.test.js +2 -2
- package/dist/core/utils/__tests__/getOpenApiVersion.test.js +2 -2
- package/dist/core/utils/__tests__/getOperationName.test.js +2 -2
- package/dist/core/utils/__tests__/getOperationParameterName.test.js +2 -2
- package/dist/core/utils/__tests__/getOperationPath.test.js +2 -2
- package/dist/core/utils/__tests__/getOperationResponseCode.test.js +2 -2
- package/dist/core/utils/__tests__/getPattern.test.js +2 -2
- package/dist/core/utils/__tests__/getRefFromSchema.test.js +2 -2
- package/dist/core/utils/__tests__/getRefs.test.js +2 -2
- package/dist/core/utils/__tests__/getRelativeModelPath.test.js +3 -3
- package/dist/core/utils/__tests__/getServiceClassName.test.js +2 -2
- package/dist/core/utils/__tests__/getServiceNames.test.js +2 -2
- package/dist/core/utils/__tests__/getServiceVersion.test.js +2 -2
- package/dist/core/utils/__tests__/isString.test.js +2 -2
- package/dist/core/utils/__tests__/isSubdirectory.test.js +10 -10
- package/dist/core/utils/__tests__/registerHandlebarHelpers.test.js +2 -2
- package/dist/core/utils/__tests__/registerHandlebarTemplates.test.js +2 -2
- package/dist/core/utils/__tests__/replaceString.test.js +2 -2
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.js +360 -51
- package/dist/core/utils/__tests__/sort.test.js +2 -2
- package/dist/core/utils/__tests__/sortByRequiredExtended.test.js +11 -11
- package/dist/core/utils/__tests__/sortByRequiredSimple.test.js +11 -11
- package/dist/core/utils/__tests__/sortModelsByName.test.js +2 -2
- package/dist/core/utils/__tests__/sortServicesByName.test.js +2 -2
- package/dist/core/utils/__tests__/stripNamespace.test.js +2 -2
- package/dist/core/utils/__tests__/unique.test.js +2 -2
- package/dist/core/utils/__tests__/writeClientCore.test.js +52 -50
- package/dist/core/utils/__tests__/writeClientFullIndex.test.js +39 -37
- package/dist/core/utils/__tests__/writeClientModels.test.js +65 -63
- package/dist/core/utils/__tests__/writeClientSchemas.test.js +65 -63
- package/dist/core/utils/__tests__/writeClientServices.test.js +60 -58
- package/dist/core/utils/appendUniqueLinesToFile.js +4 -4
- package/dist/core/utils/createNormalizedRef.js +2 -2
- package/dist/core/utils/getAbsolutePath.js +3 -3
- package/dist/core/utils/getModelNameWithPrefix.d.ts +3 -0
- package/dist/core/utils/getModelNameWithPrefix.d.ts.map +1 -0
- package/dist/core/utils/getModelNameWithPrefix.js +15 -0
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +4 -4
- package/dist/core/utils/getOutputPaths.d.ts.map +1 -1
- package/dist/core/utils/getOutputPaths.js +6 -6
- package/dist/core/utils/getPattern.d.ts.map +1 -1
- package/dist/core/utils/getPattern.js +2 -1
- package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -1
- package/dist/core/utils/getRelativeModelPath.js +2 -6
- package/dist/core/utils/isSubdirectory.d.ts.map +1 -1
- package/dist/core/utils/isSubdirectory.js +4 -3
- package/dist/core/utils/mapPathToTargetDirSafe.d.ts.map +1 -1
- package/dist/core/utils/mapPathToTargetDirSafe.js +11 -12
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +18 -6
- package/dist/core/utils/normalizeString.d.ts +2 -0
- package/dist/core/utils/normalizeString.d.ts.map +1 -0
- package/dist/core/utils/normalizeString.js +14 -0
- package/dist/core/utils/normalizedAbsolutePath.js +3 -3
- package/dist/core/utils/parseRef.d.ts.map +1 -1
- package/dist/core/utils/parseRef.js +7 -10
- package/dist/core/utils/precompileTemplates.js +14 -10
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +24 -0
- package/dist/core/utils/replaceString.d.ts.map +1 -1
- package/dist/core/utils/replaceString.js +2 -1
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefPath.js +3 -3
- package/dist/core/utils/resolveRefToImportPath.d.ts +8 -2
- package/dist/core/utils/resolveRefToImportPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefToImportPath.js +91 -31
- package/dist/core/utils/serviceHelpers.d.ts.map +1 -1
- package/dist/core/utils/serviceHelpers.js +2 -1
- package/dist/core/utils/stripNamespace.js +5 -5
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +12 -12
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +2 -2
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +4 -4
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +7 -7
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +2 -2
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +7 -7
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemasIndex.js +2 -2
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +5 -5
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.js +2 -2
- package/dist/core/utils/writeClientSimpleIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSimpleIndex.js +4 -4
- package/dist/templatesCompiled/client/exportModel.js +4 -4
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +12 -13
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +35 -29
- package/dist/templatesCompiled/client/partials/parameters.d.ts +3 -2
- package/dist/templatesCompiled/client/partials/parameters.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/parameters.js +25 -20
- package/dist/templatesCompiled/client/partials/parametersDefinition.d.ts +4 -2
- package/dist/templatesCompiled/client/partials/parametersDefinition.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/parametersDefinition.js +31 -10
- package/package.json +15 -13
- package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.d.ts +0 -5
- package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.d.ts.map +0 -1
- package/dist/cli/chekOpenApiConfig/chekOpenApiConfig.js +0 -45
- package/dist/common/Options.d.ts +0 -26
- package/dist/common/Options.d.ts.map +0 -1
- package/dist/common/Utils.d.ts +0 -3
- package/dist/common/Utils.d.ts.map +0 -1
- package/dist/common/__tests__/__mock__/mockJoiSchema.d.ts.map +0 -1
- package/dist/common/__tests__/convertArrayToObject.test.d.ts.map +0 -1
- package/dist/common/__tests__/determineBestMatchingSchemaVersion.test.d.ts.map +0 -1
- package/dist/common/__tests__/generateKeyMappingForInvalidKeys.test.d.ts.map +0 -1
- package/dist/common/__tests__/getUniqueKeysFromSchemas.test.d.ts.map +0 -1
- package/dist/common/__tests__/getUniqueObjectKeys.test.d.ts.map +0 -1
- package/dist/common/__tests__/mergeObjectSchemas.test.d.ts.map +0 -1
- package/dist/common/__tests__/migrationForMultiOptions.test.d.ts.map +0 -1
- package/dist/common/__tests__/migrationForOptions.test.d.ts.map +0 -1
- package/dist/common/__tests__/replaceInvalidKeysWithMappedNames.test.d.ts.map +0 -1
- package/dist/common/__tests__/validateAndSuggestKeyCorrections.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/getRelativeModelImportPath.test.d.ts +0 -2
- package/dist/core/utils/__tests__/getRelativeModelImportPath.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/getRelativeModelImportPath.test.js +0 -82
- package/dist/core/utils/__tests__/pathHelpers.test.d.ts.map +0 -1
- package/dist/core/utils/fileSystem.d.ts.map +0 -1
- package/dist/core/utils/fileSystem.js +0 -26
- package/dist/core/utils/format.d.ts +0 -2
- package/dist/core/utils/format.d.ts.map +0 -1
- package/dist/core/utils/getRelativeModelImportPath.d.ts +0 -9
- package/dist/core/utils/getRelativeModelImportPath.d.ts.map +0 -1
- package/dist/core/utils/getRelativeModelImportPath.js +0 -45
- package/dist/core/utils/isDirectory.d.ts +0 -2
- package/dist/core/utils/isDirectory.d.ts.map +0 -1
- package/dist/core/utils/isDirectory.js +0 -13
- package/dist/core/utils/pathHelpers.d.ts +0 -7
- package/dist/core/utils/pathHelpers.d.ts.map +0 -1
- package/dist/core/utils/prepareOptions.d.ts +0 -8
- package/dist/core/utils/prepareOptions.d.ts.map +0 -1
- package/dist/core/utils/prepareOptions.js +0 -31
- /package/dist/common/{Options.js → TRawOptions.js} +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/__mock__/mockJoiSchema.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/__mock__/mockJoiSchema.js +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/convertArrayToObject.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/determineBestMatchingSchemaVersion.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/generateKeyMappingForInvalidKeys.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/getUniqueKeysFromSchemas.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/getUniqueObjectKeys.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/mergeObjectSchemas.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/migrationForMultiOptions.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/migrationForOptions.test.d.ts +0 -0
- /package/dist/{core → common}/utils/__tests__/pathHelpers.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/replaceInvalidKeysWithMappedNames.test.d.ts +0 -0
- /package/dist/common/{__tests__ → utils/__tests__}/validateAndSuggestKeyCorrections.test.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientModelsIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModelsIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientModelsIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientModelsIndex.ts"],"names":[],"mappings":"AACA,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"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientModelsIndex = writeClientModelsIndex;
|
|
4
|
-
const
|
|
4
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
5
5
|
const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
|
|
6
6
|
async function writeClientModelsIndex(options) {
|
|
7
7
|
const { models, templates, outputModelsPath, useSeparatedIndexes } = options;
|
|
8
8
|
if (!useSeparatedIndexes) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
const filePath = (0,
|
|
11
|
+
const filePath = (0, pathHelpers_1.resolveHelper)(outputModelsPath, 'index.ts');
|
|
12
12
|
this.logger.info(`Data has been written to a file: ${filePath}`);
|
|
13
13
|
const content = templates.indexes.models({ models });
|
|
14
14
|
await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientSchemas.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemas.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,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"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientSchemas = writeClientSchemas;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const fileSystemHelpers_1 = require("../../common/utils/fileSystemHelpers");
|
|
6
|
+
const format_1 = require("../../common/utils/format");
|
|
7
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
8
8
|
/**
|
|
9
9
|
* Generate Schemas using the Handlebar template and write to disk.
|
|
10
10
|
* @param models Array of Models to write
|
|
@@ -18,13 +18,13 @@ async function writeClientSchemas(options) {
|
|
|
18
18
|
this.logger.info('The recording of model validation schema files begins.');
|
|
19
19
|
for (const model of models) {
|
|
20
20
|
const modelFolderPath = model?.path;
|
|
21
|
-
const dir = (0, pathHelpers_1.
|
|
21
|
+
const dir = (0, pathHelpers_1.dirNameHelper)(modelFolderPath);
|
|
22
22
|
if (dir) {
|
|
23
|
-
const directory = (0, pathHelpers_1.
|
|
23
|
+
const directory = (0, pathHelpers_1.resolveHelper)(outputSchemasPath, dir);
|
|
24
24
|
this.logger.info(`A directory is being created: ${directory}`);
|
|
25
25
|
(0, fs_1.mkdirSync)(directory, { recursive: true });
|
|
26
26
|
}
|
|
27
|
-
const file = (0, pathHelpers_1.
|
|
27
|
+
const file = (0, pathHelpers_1.resolveHelper)(outputSchemasPath, `${modelFolderPath}Schema.ts`);
|
|
28
28
|
this.logger.info(`The recording of the file data begins: ${file}`);
|
|
29
29
|
const templateResult = templates.exports.schema({
|
|
30
30
|
...model,
|
|
@@ -32,7 +32,7 @@ async function writeClientSchemas(options) {
|
|
|
32
32
|
useUnionTypes,
|
|
33
33
|
});
|
|
34
34
|
const formattedValue = await (0, format_1.format)(templateResult);
|
|
35
|
-
await
|
|
35
|
+
await fileSystemHelpers_1.fileSystemHelpers.writeFile(file, formattedValue);
|
|
36
36
|
this.logger.info(`File recording completed: ${file}`);
|
|
37
37
|
}
|
|
38
38
|
this.logger.info('The recording of model validation schema files has been completed successfully');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSchemasIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemasIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientSchemasIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSchemasIndex.ts"],"names":[],"mappings":"AACA,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"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientSchemasIndex = writeClientSchemasIndex;
|
|
4
|
-
const
|
|
4
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
5
5
|
const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
|
|
6
6
|
async function writeClientSchemasIndex(options) {
|
|
7
7
|
const { models, templates, outputSchemasPath, useSeparatedIndexes } = options;
|
|
8
8
|
if (!useSeparatedIndexes) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
const filePath = (0,
|
|
11
|
+
const filePath = (0, pathHelpers_1.resolveHelper)(outputSchemasPath, 'index.ts');
|
|
12
12
|
this.logger.info(`Data has been written to a file: ${filePath}`);
|
|
13
13
|
const content = templates.indexes.schemas({ schemas: models });
|
|
14
14
|
await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAGA,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;AAC7C,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"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientServices = writeClientServices;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const fileSystemHelpers_1 = require("../../common/utils/fileSystemHelpers");
|
|
5
|
+
const format_1 = require("../../common/utils/format");
|
|
6
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
7
7
|
/**
|
|
8
8
|
* Generate Services using the Handlebar template and write to disk.
|
|
9
9
|
* @param services Array of Services to write
|
|
@@ -17,7 +17,7 @@ async function writeClientServices(options) {
|
|
|
17
17
|
const { services, templates, outputPaths, httpClient, useUnionTypes, useOptions, useCancelableRequest } = options;
|
|
18
18
|
this.logger.info('Recording of service files begins');
|
|
19
19
|
for (const service of services) {
|
|
20
|
-
const file = (0,
|
|
20
|
+
const file = (0, pathHelpers_1.resolveHelper)(outputPaths.outputServices, `${service.name}.ts`);
|
|
21
21
|
this.logger.info(`The recording of the file data begins: ${file}`);
|
|
22
22
|
const templateResult = templates.exports.service({
|
|
23
23
|
...service,
|
|
@@ -29,7 +29,7 @@ async function writeClientServices(options) {
|
|
|
29
29
|
useCancelableRequest,
|
|
30
30
|
});
|
|
31
31
|
const formattedValue = await (0, format_1.format)(templateResult);
|
|
32
|
-
await
|
|
32
|
+
await fileSystemHelpers_1.fileSystemHelpers.writeFile(file, formattedValue);
|
|
33
33
|
this.logger.info(`File recording completed: ${file}`);
|
|
34
34
|
}
|
|
35
35
|
this.logger.info('Service file recording completed successfully');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientServicesIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServicesIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientServicesIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServicesIndex.ts"],"names":[],"mappings":"AACA,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"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientServicesIndex = writeClientServicesIndex;
|
|
4
|
-
const
|
|
4
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
5
5
|
const appendUniqueLinesToFile_1 = require("./appendUniqueLinesToFile");
|
|
6
6
|
async function writeClientServicesIndex(options) {
|
|
7
7
|
const { services, templates, outputServices, useSeparatedIndexes } = options;
|
|
8
8
|
if (!useSeparatedIndexes) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
const filePath = (0,
|
|
11
|
+
const filePath = (0, pathHelpers_1.resolveHelper)(outputServices, 'index.ts');
|
|
12
12
|
this.logger.info(`Data has been written to a file: ${filePath}`);
|
|
13
13
|
const content = templates.indexes.services({ services });
|
|
14
14
|
await (0, appendUniqueLinesToFile_1.appendUniqueLinesToFile)(filePath, content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeClientSimpleIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSimpleIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeClientSimpleIndex.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientSimpleIndex.ts"],"names":[],"mappings":"AACA,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeClientSimpleIndex = writeClientSimpleIndex;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const pathHelpers_1 = require("../../common/utils/pathHelpers");
|
|
5
|
+
const fileSystemHelpers_1 = require("../../common/utils/fileSystemHelpers");
|
|
6
6
|
/**
|
|
7
7
|
* Generate the OpenAPI client index file using the Handlebar template and write it to disk.
|
|
8
8
|
* The index file just contains all the exports you need to use the client as a standalone
|
|
@@ -10,9 +10,9 @@ const fileSystem_1 = require("./fileSystem");
|
|
|
10
10
|
*/
|
|
11
11
|
async function writeClientSimpleIndex(options) {
|
|
12
12
|
const { templates, outputPath, core, models, schemas, services } = options;
|
|
13
|
-
const resolvePathIndex = (0,
|
|
13
|
+
const resolvePathIndex = (0, pathHelpers_1.resolveHelper)(outputPath, 'index.ts');
|
|
14
14
|
this.logger.info(`The recording of the file data begins: ${resolvePathIndex}`);
|
|
15
|
-
await
|
|
15
|
+
await fileSystemHelpers_1.fileSystemHelpers.writeFile(resolvePathIndex, templates.indexes.simple({
|
|
16
16
|
core,
|
|
17
17
|
models,
|
|
18
18
|
schemas,
|
|
@@ -16,17 +16,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
16
16
|
return "\n"
|
|
17
17
|
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "imports"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 9 } } })) != null ? stack1 : "");
|
|
18
18
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
19
|
-
var stack1, alias1 =
|
|
19
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
20
20
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
21
21
|
return parent[propertyName];
|
|
22
22
|
}
|
|
23
23
|
return undefined;
|
|
24
24
|
};
|
|
25
25
|
return "import type { "
|
|
26
|
-
+ ((stack1 =
|
|
27
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
26
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
27
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, 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
28
|
+ " } from '"
|
|
29
|
-
+ ((stack1 =
|
|
29
|
+
+ ((stack1 = lookupProperty(helpers, "normalizePath").call(alias1, lookupProperty(depth0, "path"), { "name": "normalizePath", "hash": {}, "data": data, "loc": { "start": { "line": 6, "column": 68 }, "end": { "line": 6, "column": 92 } } })) != null ? stack1 : "")
|
|
30
30
|
+ "';\n";
|
|
31
31
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
32
|
var stack1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAqNoD"}
|
|
@@ -15,18 +15,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
15
15
|
};
|
|
16
16
|
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "imports"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 9 } } })) != null ? stack1 : "");
|
|
17
17
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
18
|
-
var stack1, alias1 =
|
|
18
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
19
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
20
20
|
return parent[propertyName];
|
|
21
21
|
}
|
|
22
22
|
return undefined;
|
|
23
23
|
};
|
|
24
24
|
return "import type { "
|
|
25
|
-
+ ((stack1 =
|
|
26
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
25
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
26
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 59 } } })) != null ? stack1 : "")
|
|
27
27
|
+ " } from '"
|
|
28
|
-
+ ((stack1 =
|
|
29
|
-
+ ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 5, "column": 95 }, "end": { "line": 5, "column": 99 } }), depth0)) != null ? stack1 : "")
|
|
28
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputModels"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 68 }, "end": { "line": 5, "column": 106 } } })) != null ? stack1 : "")
|
|
30
29
|
+ "';\n";
|
|
31
30
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
31
|
var stack1;
|
|
@@ -40,8 +39,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
40
39
|
return undefined;
|
|
41
40
|
};
|
|
42
41
|
return "import type { CancelablePromise } from '"
|
|
43
|
-
+ ((stack1 =
|
|
44
|
-
+ "
|
|
42
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 91 } } })) != null ? stack1 : "")
|
|
43
|
+
+ "';\n";
|
|
45
44
|
}, "7": function (container, depth0, helpers, partials, data) {
|
|
46
45
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
47
46
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -181,12 +180,12 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
181
180
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "imports"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 7 } } })) != null ? stack1 : "")
|
|
182
181
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 7 } } })) != null ? stack1 : "")
|
|
183
182
|
+ "import { request as __request } from '"
|
|
184
|
-
+ ((stack1 =
|
|
185
|
-
+ "
|
|
186
|
-
+ ((stack1 =
|
|
187
|
-
+ "
|
|
188
|
-
+ ((stack1 =
|
|
189
|
-
+ "
|
|
183
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "request", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 11, "column": 38 }, "end": { "line": 11, "column": 79 } } })) != null ? stack1 : "")
|
|
184
|
+
+ "';\nimport type { ApiRequestOptions } from '"
|
|
185
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiRequestOptions", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 12, "column": 40 }, "end": { "line": 12, "column": 91 } } })) != null ? stack1 : "")
|
|
186
|
+
+ "';\nimport { OpenAPI } from '"
|
|
187
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 66 } } })) != null ? stack1 : "")
|
|
188
|
+
+ "';\n\n"
|
|
190
189
|
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 20, "column": 9 } } })) != null ? stack1 : "")
|
|
191
190
|
+ "\nexport type T"
|
|
192
191
|
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 22, "column": 16 }, "end": { "line": 22, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"indexFull.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/indexFull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAoMoD"}
|
|
@@ -16,7 +16,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
16
16
|
return "\n"
|
|
17
17
|
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "core"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 11, "column": 9 } } })) != null ? stack1 : "");
|
|
18
18
|
}, "2": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
19
|
-
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}),
|
|
19
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
20
20
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
21
21
|
return parent[propertyName];
|
|
22
22
|
}
|
|
@@ -25,27 +25,32 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
25
25
|
return "export { ApiError"
|
|
26
26
|
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(3, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 87 } } })) != null ? stack1 : "")
|
|
27
27
|
+ " } from './"
|
|
28
|
-
+ ((stack1 =
|
|
29
|
-
+ "
|
|
28
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "ApiError", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 98 }, "end": { "line": 5, "column": 128 } } })) != null ? stack1 : "")
|
|
29
|
+
+ "';\n"
|
|
30
30
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 8, "column": 7 } } })) != null ? stack1 : "")
|
|
31
31
|
+ "export { OpenAPI"
|
|
32
32
|
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 86 } } })) != null ? stack1 : "")
|
|
33
33
|
+ " } from './"
|
|
34
|
-
+ ((stack1 =
|
|
35
|
-
+ "
|
|
34
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 9, "column": 97 }, "end": { "line": 9, "column": 126 } } })) != null ? stack1 : "")
|
|
35
|
+
+ "';\nexport type { TOpenAPIConfig"
|
|
36
36
|
+ ((stack1 = lookupProperty(helpers, "notEquals").call(alias1, lookupProperty(lookupProperty(depths[1], "core"), "length"), 1, { "name": "notEquals", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 10, "column": 28 }, "end": { "line": 10, "column": 104 } } })) != null ? stack1 : "")
|
|
37
37
|
+ " } from './"
|
|
38
|
-
+ ((stack1 =
|
|
39
|
-
+ "
|
|
38
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, depth0, "OpenAPI", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 10, "column": 115 }, "end": { "line": 10, "column": 144 } } })) != null ? stack1 : "")
|
|
39
|
+
+ "';\n";
|
|
40
40
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
41
41
|
var stack1;
|
|
42
42
|
return " as ApiError$"
|
|
43
43
|
+ ((stack1 = container.lambda(container.strict(data, "index", { "start": { "line": 5, "column": 64 }, "end": { "line": 5, "column": 70 } }), depth0)) != null ? stack1 : "");
|
|
44
44
|
}, "5": function (container, depth0, helpers, partials, data) {
|
|
45
|
-
var stack1
|
|
45
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
47
|
+
return parent[propertyName];
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
};
|
|
46
51
|
return "export { CancelablePromise } from './"
|
|
47
|
-
+ ((stack1 =
|
|
48
|
-
+ "
|
|
52
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), depth0, "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 7, "column": 37 }, "end": { "line": 7, "column": 76 } } })) != null ? stack1 : "")
|
|
53
|
+
+ "';\n";
|
|
49
54
|
}, "7": function (container, depth0, helpers, partials, data) {
|
|
50
55
|
var stack1;
|
|
51
56
|
return " as OpenAPI$"
|
|
@@ -72,18 +77,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
72
77
|
};
|
|
73
78
|
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enum"), { "name": "if", "hash": {}, "fn": container.program(13, data, 0), "inverse": container.program(16, data, 0), "data": data, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 24, "column": 7 } } })) != null ? stack1 : "");
|
|
74
79
|
}, "13": function (container, depth0, helpers, partials, data) {
|
|
75
|
-
var stack1, alias1 =
|
|
80
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
76
81
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
77
82
|
return parent[propertyName];
|
|
78
83
|
}
|
|
79
84
|
return undefined;
|
|
80
85
|
};
|
|
81
86
|
return "export { "
|
|
82
|
-
+ ((stack1 =
|
|
83
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
87
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 16 } }), depth0)) != null ? stack1 : "")
|
|
88
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(14, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 55 } } })) != null ? stack1 : "")
|
|
84
89
|
+ " } from './"
|
|
85
|
-
+ ((stack1 =
|
|
86
|
-
+ ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 17, "column": 82 }, "end": { "line": 17, "column": 86 } }), depth0)) != null ? stack1 : "")
|
|
90
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 17, "column": 66 }, "end": { "line": 17, "column": 93 } } })) != null ? stack1 : "")
|
|
87
91
|
+ "';\n";
|
|
88
92
|
}, "14": function (container, depth0, helpers, partials, data) {
|
|
89
93
|
var stack1;
|
|
@@ -98,18 +102,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
98
102
|
};
|
|
99
103
|
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "useUnionTypes"), { "name": "if", "hash": {}, "fn": container.program(17, data, 0), "inverse": container.program(19, data, 0), "data": data, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 24, "column": 0 } } })) != null ? stack1 : "");
|
|
100
104
|
}, "17": function (container, depth0, helpers, partials, data) {
|
|
101
|
-
var stack1, alias1 =
|
|
105
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
102
106
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
103
107
|
return parent[propertyName];
|
|
104
108
|
}
|
|
105
109
|
return undefined;
|
|
106
110
|
};
|
|
107
111
|
return "export type { "
|
|
108
|
-
+ ((stack1 =
|
|
109
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
112
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
113
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(14, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 60 } } })) != null ? stack1 : "")
|
|
110
114
|
+ " } from './"
|
|
111
|
-
+ ((stack1 =
|
|
112
|
-
+ ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 19, "column": 87 }, "end": { "line": 19, "column": 91 } }), depth0)) != null ? stack1 : "")
|
|
115
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 19, "column": 71 }, "end": { "line": 19, "column": 98 } } })) != null ? stack1 : "")
|
|
113
116
|
+ "';\n";
|
|
114
117
|
}, "19": function (container, depth0, helpers, partials, data) {
|
|
115
118
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -129,19 +132,18 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
129
132
|
return "\n"
|
|
130
133
|
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "schemas"), { "name": "each", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 31, "column": 9 } } })) != null ? stack1 : "");
|
|
131
134
|
}, "22": function (container, depth0, helpers, partials, data) {
|
|
132
|
-
var stack1, alias1 =
|
|
135
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
133
136
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
134
137
|
return parent[propertyName];
|
|
135
138
|
}
|
|
136
139
|
return undefined;
|
|
137
140
|
};
|
|
138
141
|
return "export { "
|
|
139
|
-
+ ((stack1 =
|
|
142
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 16 } }), depth0)) != null ? stack1 : "")
|
|
140
143
|
+ "Schema"
|
|
141
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
144
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 30, "column": 25 }, "end": { "line": 30, "column": 67 } } })) != null ? stack1 : "")
|
|
142
145
|
+ " } from './"
|
|
143
|
-
+ ((stack1 =
|
|
144
|
-
+ ((stack1 = alias2(alias1(depth0, "path", { "start": { "line": 30, "column": 94 }, "end": { "line": 30, "column": 98 } }), depth0)) != null ? stack1 : "")
|
|
146
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(depth0, "package"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 30, "column": 78 }, "end": { "line": 30, "column": 105 } } })) != null ? stack1 : "")
|
|
145
147
|
+ "Schema';\n";
|
|
146
148
|
}, "23": function (container, depth0, helpers, partials, data) {
|
|
147
149
|
var stack1;
|
|
@@ -158,12 +160,16 @@ exports.default = { "1": function (container, depth0, helpers, partials, data, b
|
|
|
158
160
|
return "\n"
|
|
159
161
|
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "services"), { "name": "each", "hash": {}, "fn": container.program(26, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 35, "column": 0 }, "end": { "line": 37, "column": 9 } } })) != null ? stack1 : "");
|
|
160
162
|
}, "26": function (container, depth0, helpers, partials, data) {
|
|
161
|
-
var stack1,
|
|
163
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
164
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
165
|
+
return parent[propertyName];
|
|
166
|
+
}
|
|
167
|
+
return undefined;
|
|
168
|
+
};
|
|
162
169
|
return "export { "
|
|
163
|
-
+ ((stack1 =
|
|
170
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 16 } }), depth0)) != null ? stack1 : "")
|
|
164
171
|
+ " } from './"
|
|
165
|
-
+ ((stack1 =
|
|
166
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 36, "column": 46 }, "end": { "line": 36, "column": 50 } }), depth0)) != null ? stack1 : "")
|
|
172
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "package"), lookupProperty(depth0, "name"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 57 } } })) != null ? stack1 : "")
|
|
167
173
|
+ "';\n";
|
|
168
174
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
169
175
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -4,9 +4,10 @@ declare const _default: {
|
|
|
4
4
|
"3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
5
|
"4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
6
|
"6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
7
|
-
"
|
|
7
|
+
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
8
|
"9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
|
-
"
|
|
9
|
+
"11": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
|
+
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
11
|
compiler: (string | number)[];
|
|
11
12
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
12
13
|
usePartial: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/parameters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,wBAgGmC"}
|