@azure-tools/typespec-ts 0.13.0 → 0.13.1-alpha.20230609.1
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/CHANGELOG.md +8 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +37 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/modelUtils.d.ts +2 -0
- package/dist/src/modelUtils.d.ts.map +1 -1
- package/dist/src/modelUtils.js +82 -13
- package/dist/src/modelUtils.js.map +1 -1
- package/dist/src/modular/buildApiIndex.d.ts.map +1 -1
- package/dist/src/modular/buildApiIndex.js +1 -1
- package/dist/src/modular/buildApiIndex.js.map +1 -1
- package/dist/src/modular/buildClassicalClient.d.ts.map +1 -1
- package/dist/src/modular/buildClassicalClient.js +6 -6
- package/dist/src/modular/buildClassicalClient.js.map +1 -1
- package/dist/src/modular/buildClientContext.d.ts.map +1 -1
- package/dist/src/modular/buildClientContext.js +9 -3
- package/dist/src/modular/buildClientContext.js.map +1 -1
- package/dist/src/modular/buildCodeModel.d.ts.map +1 -1
- package/dist/src/modular/buildCodeModel.js +190 -169
- package/dist/src/modular/buildCodeModel.js.map +1 -1
- package/dist/src/modular/buildOperations.d.ts.map +1 -1
- package/dist/src/modular/buildOperations.js +20 -2
- package/dist/src/modular/buildOperations.js.map +1 -1
- package/dist/src/modular/buildRootIndex.js +2 -2
- package/dist/src/modular/buildRootIndex.js.map +1 -1
- package/dist/src/modular/buildSharedTypes.d.ts.map +1 -1
- package/dist/src/modular/buildSharedTypes.js +8 -10
- package/dist/src/modular/buildSharedTypes.js.map +1 -1
- package/dist/src/modular/emitModels.d.ts.map +1 -1
- package/dist/src/modular/emitModels.js +19 -6
- package/dist/src/modular/emitModels.js.map +1 -1
- package/dist/src/modular/helpers/clientHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/clientHelpers.js +2 -11
- package/dist/src/modular/helpers/clientHelpers.js.map +1 -1
- package/dist/src/modular/helpers/credentialHelpers.js +1 -1
- package/dist/src/modular/helpers/credentialHelpers.js.map +1 -1
- package/dist/src/modular/helpers/fixmeHelpers.d.ts +2 -0
- package/dist/src/modular/helpers/fixmeHelpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/fixmeHelpers.js +4 -0
- package/dist/src/modular/helpers/fixmeHelpers.js.map +1 -0
- package/dist/src/modular/helpers/namingHelpers.d.ts +10 -1
- package/dist/src/modular/helpers/namingHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/namingHelpers.js +20 -0
- package/dist/src/modular/helpers/namingHelpers.js.map +1 -1
- package/dist/src/modular/helpers/operationHelpers.d.ts +2 -0
- package/dist/src/modular/helpers/operationHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/operationHelpers.js +117 -35
- package/dist/src/modular/helpers/operationHelpers.js.map +1 -1
- package/dist/src/modular/helpers/parameterHelpers.js +1 -1
- package/dist/src/modular/helpers/parameterHelpers.js.map +1 -1
- package/dist/src/modular/helpers/typeHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/typeHelpers.js +31 -12
- package/dist/src/modular/helpers/typeHelpers.js.map +1 -1
- package/dist/src/modular/modularCodeModel.d.ts +2 -1
- package/dist/src/modular/modularCodeModel.d.ts.map +1 -1
- package/dist/src/operationUtil.d.ts +1 -1
- package/dist/src/operationUtil.d.ts.map +1 -1
- package/dist/src/operationUtil.js +21 -3
- package/dist/src/operationUtil.js.map +1 -1
- package/dist/src/transform/transform.d.ts.map +1 -1
- package/dist/src/transform/transform.js +2 -2
- package/dist/src/transform/transform.js.map +1 -1
- package/dist/src/transform/transformApiVersionInfo.js +9 -0
- package/dist/src/transform/transformApiVersionInfo.js.map +1 -1
- package/dist/src/transform/transformHelperFunctionDetails.d.ts.map +1 -1
- package/dist/src/transform/transformHelperFunctionDetails.js +27 -1
- package/dist/src/transform/transformHelperFunctionDetails.js.map +1 -1
- package/dist/src/transform/transformParameters.d.ts +1 -0
- package/dist/src/transform/transformParameters.d.ts.map +1 -1
- package/dist/src/transform/transformParameters.js +36 -35
- package/dist/src/transform/transformParameters.js.map +1 -1
- package/dist/src/transform/transformPaths.d.ts.map +1 -1
- package/dist/src/transform/transformPaths.js +9 -0
- package/dist/src/transform/transformPaths.js.map +1 -1
- package/dist/src/transform/transformResponses.d.ts.map +1 -1
- package/dist/src/transform/transformResponses.js +10 -1
- package/dist/src/transform/transformResponses.js.map +1 -1
- package/dist/src/transform/transformSchemas.d.ts.map +1 -1
- package/dist/src/transform/transformSchemas.js +9 -0
- package/dist/src/transform/transformSchemas.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -15
- package/src/index.ts +47 -2
- package/src/modelUtils.ts +90 -15
- package/src/modular/buildApiIndex.ts +3 -1
- package/src/modular/buildClassicalClient.ts +8 -6
- package/src/modular/buildClientContext.ts +11 -3
- package/src/modular/buildCodeModel.ts +221 -196
- package/src/modular/buildOperations.ts +23 -1
- package/src/modular/buildRootIndex.ts +2 -2
- package/src/modular/buildSharedTypes.ts +8 -10
- package/src/modular/emitModels.ts +14 -0
- package/src/modular/helpers/clientHelpers.ts +3 -13
- package/src/modular/helpers/credentialHelpers.ts +1 -1
- package/src/modular/helpers/fixmeHelpers.ts +3 -0
- package/src/modular/helpers/namingHelpers.ts +35 -1
- package/src/modular/helpers/operationHelpers.ts +173 -66
- package/src/modular/helpers/parameterHelpers.ts +1 -1
- package/src/modular/helpers/typeHelpers.ts +33 -12
- package/src/modular/modularCodeModel.ts +3 -1
- package/src/operationUtil.ts +24 -3
- package/src/transform/transform.ts +4 -1
- package/src/transform/transformApiVersionInfo.ts +8 -0
- package/src/transform/transformHelperFunctionDetails.ts +25 -1
- package/src/transform/transformParameters.ts +52 -41
- package/src/transform/transformPaths.ts +8 -0
- package/src/transform/transformResponses.ts +9 -1
- package/src/transform/transformSchemas.ts +8 -0
- package/.eslintrc.json +0 -23
- package/.prettierignore +0 -1
- package/.prettierrc +0 -7
- package/.rush/temp/operation/build/all.log +0 -1
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/package-deps_build.json +0 -442
- package/.rush/temp/shrinkwrap-deps.json +0 -490
- package/CONTRIBUTING.md +0 -137
- package/test/commands/cadl-ranch-list.ts +0 -116
- package/test/commands/check-clean-tree.ts +0 -55
- package/test/commands/childProcessOnExit.ts +0 -16
- package/test/commands/gen-cadl-ranch.ts +0 -25
- package/test/commands/run.ts +0 -31
- package/test/integration/arrayItemTypes.spec.ts +0 -96
- package/test/integration/authApiKey.spec.ts +0 -38
- package/test/integration/authOauth2.spec.ts +0 -65
- package/test/integration/authUnion.spec.ts +0 -72
- package/test/integration/azurecore.spec.ts +0 -170
- package/test/integration/collectionFormat.spec.ts +0 -118
- package/test/integration/dictionary.spec.ts +0 -106
- package/test/integration/extensibleEnums.spec.ts +0 -61
- package/test/integration/fixedEnums.spec.ts +0 -52
- package/test/integration/generated/arrays/itemTypes/src/arrayItemTypesClient.ts +0 -35
- package/test/integration/generated/arrays/itemTypes/src/clientDefinitions.ts +0 -165
- package/test/integration/generated/arrays/itemTypes/src/index.ts +0 -13
- package/test/integration/generated/arrays/itemTypes/src/logger.ts +0 -5
- package/test/integration/generated/arrays/itemTypes/src/models.ts +0 -9
- package/test/integration/generated/arrays/itemTypes/src/outputModels.ts +0 -9
- package/test/integration/generated/arrays/itemTypes/src/parameters.ts +0 -86
- package/test/integration/generated/arrays/itemTypes/src/responses.ts +0 -115
- package/test/integration/generated/arrays/itemTypes/tspconfig.yaml +0 -15
- package/test/integration/generated/authentication/apiKey/.eslintrc.json +0 -11
- package/test/integration/generated/authentication/apiKey/README.md +0 -56
- package/test/integration/generated/authentication/apiKey/api-extractor.json +0 -18
- package/test/integration/generated/authentication/apiKey/karma.conf.js +0 -133
- package/test/integration/generated/authentication/apiKey/package.json +0 -103
- package/test/integration/generated/authentication/apiKey/rollup.config.js +0 -118
- package/test/integration/generated/authentication/apiKey/src/authApiKeyClient.ts +0 -45
- package/test/integration/generated/authentication/apiKey/src/clientDefinitions.ts +0 -33
- package/test/integration/generated/authentication/apiKey/src/index.ts +0 -12
- package/test/integration/generated/authentication/apiKey/src/logger.ts +0 -5
- package/test/integration/generated/authentication/apiKey/src/outputModels.ts +0 -6
- package/test/integration/generated/authentication/apiKey/src/parameters.ts +0 -7
- package/test/integration/generated/authentication/apiKey/src/responses.ts +0 -21
- package/test/integration/generated/authentication/apiKey/test/public/sampleTest.spec.ts +0 -23
- package/test/integration/generated/authentication/apiKey/test/public/utils/env.browser.ts +0 -2
- package/test/integration/generated/authentication/apiKey/test/public/utils/env.ts +0 -6
- package/test/integration/generated/authentication/apiKey/test/public/utils/recordedClient.ts +0 -29
- package/test/integration/generated/authentication/apiKey/tsconfig.json +0 -25
- package/test/integration/generated/authentication/apiKey/tspconfig.yaml +0 -13
- package/test/integration/generated/authentication/oauth2/karma.conf.js +0 -133
- package/test/integration/generated/authentication/oauth2/src/authOauth2Client.ts +0 -45
- package/test/integration/generated/authentication/oauth2/src/clientDefinitions.ts +0 -33
- package/test/integration/generated/authentication/oauth2/src/index.ts +0 -12
- package/test/integration/generated/authentication/oauth2/src/logger.ts +0 -5
- package/test/integration/generated/authentication/oauth2/src/outputModels.ts +0 -6
- package/test/integration/generated/authentication/oauth2/src/parameters.ts +0 -7
- package/test/integration/generated/authentication/oauth2/src/responses.ts +0 -21
- package/test/integration/generated/authentication/oauth2/test/public/sampleTest.spec.ts +0 -23
- package/test/integration/generated/authentication/oauth2/test/public/utils/env.browser.ts +0 -2
- package/test/integration/generated/authentication/oauth2/test/public/utils/env.ts +0 -6
- package/test/integration/generated/authentication/oauth2/test/public/utils/recordedClient.ts +0 -29
- package/test/integration/generated/authentication/oauth2/tspconfig.yaml +0 -15
- package/test/integration/generated/authentication/union/karma.conf.js +0 -133
- package/test/integration/generated/authentication/union/src/authUnionClient.ts +0 -46
- package/test/integration/generated/authentication/union/src/clientDefinitions.ts +0 -27
- package/test/integration/generated/authentication/union/src/index.ts +0 -11
- package/test/integration/generated/authentication/union/src/logger.ts +0 -5
- package/test/integration/generated/authentication/union/src/parameters.ts +0 -7
- package/test/integration/generated/authentication/union/src/responses.ts +0 -14
- package/test/integration/generated/authentication/union/test/public/sampleTest.spec.ts +0 -23
- package/test/integration/generated/authentication/union/test/public/utils/env.browser.ts +0 -2
- package/test/integration/generated/authentication/union/test/public/utils/env.ts +0 -6
- package/test/integration/generated/authentication/union/test/public/utils/recordedClient.ts +0 -29
- package/test/integration/generated/authentication/union/tspconfig.yaml +0 -15
- package/test/integration/generated/azure/core/.eslintrc.json +0 -11
- package/test/integration/generated/azure/core/README.md +0 -56
- package/test/integration/generated/azure/core/api-extractor.json +0 -18
- package/test/integration/generated/azure/core/package.json +0 -81
- package/test/integration/generated/azure/core/rollup.config.js +0 -118
- package/test/integration/generated/azure/core/src/azureCoreClient.ts +0 -35
- package/test/integration/generated/azure/core/src/clientDefinitions.ts +0 -108
- package/test/integration/generated/azure/core/src/index.ts +0 -16
- package/test/integration/generated/azure/core/src/isUnexpected.ts +0 -178
- package/test/integration/generated/azure/core/src/logger.ts +0 -5
- package/test/integration/generated/azure/core/src/models.ts +0 -18
- package/test/integration/generated/azure/core/src/outputModels.ts +0 -38
- package/test/integration/generated/azure/core/src/paginateHelper.ts +0 -204
- package/test/integration/generated/azure/core/src/parameters.ts +0 -68
- package/test/integration/generated/azure/core/src/responses.ts +0 -158
- package/test/integration/generated/azure/core/src/serializeHelper.ts +0 -16
- package/test/integration/generated/azure/core/tsconfig.json +0 -25
- package/test/integration/generated/azure/core/tspconfig.yaml +0 -15
- package/test/integration/generated/azure/core-traits/.eslintrc.json +0 -11
- package/test/integration/generated/azure/core-traits/README.md +0 -56
- package/test/integration/generated/azure/core-traits/api-extractor.json +0 -18
- package/test/integration/generated/azure/core-traits/package.json +0 -80
- package/test/integration/generated/azure/core-traits/rollup.config.js +0 -118
- package/test/integration/generated/azure/core-traits/src/azureCoreTraitsClient.ts +0 -35
- package/test/integration/generated/azure/core-traits/src/clientDefinitions.ts +0 -22
- package/test/integration/generated/azure/core-traits/src/index.ts +0 -13
- package/test/integration/generated/azure/core-traits/src/isUnexpected.ts +0 -97
- package/test/integration/generated/azure/core-traits/src/logger.ts +0 -5
- package/test/integration/generated/azure/core-traits/src/outputModels.ts +0 -25
- package/test/integration/generated/azure/core-traits/src/parameters.ts +0 -26
- package/test/integration/generated/azure/core-traits/src/responses.ts +0 -32
- package/test/integration/generated/azure/core-traits/tsconfig.json +0 -25
- package/test/integration/generated/azure/core-traits/tspconfig.yaml +0 -15
- package/test/integration/generated/dictionary/.eslintrc.json +0 -11
- package/test/integration/generated/dictionary/README.md +0 -56
- package/test/integration/generated/dictionary/api-extractor.json +0 -18
- package/test/integration/generated/dictionary/package.json +0 -80
- package/test/integration/generated/dictionary/rollup.config.js +0 -118
- package/test/integration/generated/dictionary/src/clientDefinitions.ts +0 -180
- package/test/integration/generated/dictionary/src/dictClient.ts +0 -33
- package/test/integration/generated/dictionary/src/index.ts +0 -13
- package/test/integration/generated/dictionary/src/logger.ts +0 -5
- package/test/integration/generated/dictionary/src/models.ts +0 -9
- package/test/integration/generated/dictionary/src/outputModels.ts +0 -9
- package/test/integration/generated/dictionary/src/parameters.ts +0 -94
- package/test/integration/generated/dictionary/src/responses.ts +0 -126
- package/test/integration/generated/dictionary/tsconfig.json +0 -25
- package/test/integration/generated/dictionary/tspconfig.yaml +0 -15
- package/test/integration/generated/enums/extensible/.eslintrc.json +0 -11
- package/test/integration/generated/enums/extensible/README.md +0 -56
- package/test/integration/generated/enums/extensible/api-extractor.json +0 -18
- package/test/integration/generated/enums/extensible/package.json +0 -80
- package/test/integration/generated/enums/extensible/rollup.config.js +0 -118
- package/test/integration/generated/enums/extensible/src/clientDefinitions.ts +0 -45
- package/test/integration/generated/enums/extensible/src/index.ts +0 -11
- package/test/integration/generated/enums/extensible/src/logger.ts +0 -5
- package/test/integration/generated/enums/extensible/src/parameters.ts +0 -23
- package/test/integration/generated/enums/extensible/src/responses.ts +0 -26
- package/test/integration/generated/enums/extensible/src/typeEnumExtensible.ts +0 -35
- package/test/integration/generated/enums/extensible/tsconfig.json +0 -25
- package/test/integration/generated/enums/extensible/tspconfig.yaml +0 -14
- package/test/integration/generated/enums/fixed/.eslintrc.json +0 -11
- package/test/integration/generated/enums/fixed/README.md +0 -56
- package/test/integration/generated/enums/fixed/api-extractor.json +0 -18
- package/test/integration/generated/enums/fixed/package.json +0 -80
- package/test/integration/generated/enums/fixed/rollup.config.js +0 -118
- package/test/integration/generated/enums/fixed/src/clientDefinitions.ts +0 -43
- package/test/integration/generated/enums/fixed/src/index.ts +0 -11
- package/test/integration/generated/enums/fixed/src/logger.ts +0 -5
- package/test/integration/generated/enums/fixed/src/parameters.ts +0 -36
- package/test/integration/generated/enums/fixed/src/responses.ts +0 -27
- package/test/integration/generated/enums/fixed/src/typeEnumFixed.ts +0 -35
- package/test/integration/generated/enums/fixed/tsconfig.json +0 -25
- package/test/integration/generated/enums/fixed/tspconfig.yaml +0 -14
- package/test/integration/generated/hello/.eslintrc.json +0 -11
- package/test/integration/generated/hello/README.md +0 -56
- package/test/integration/generated/hello/api-extractor.json +0 -18
- package/test/integration/generated/hello/package.json +0 -80
- package/test/integration/generated/hello/rollup.config.js +0 -118
- package/test/integration/generated/hello/src/clientDefinitions.ts +0 -19
- package/test/integration/generated/hello/src/hello.ts +0 -29
- package/test/integration/generated/hello/src/index.ts +0 -11
- package/test/integration/generated/hello/src/parameters.ts +0 -6
- package/test/integration/generated/hello/src/responses.ts +0 -10
- package/test/integration/generated/hello/tsconfig.json +0 -25
- package/test/integration/generated/hello/tspconfig.yaml +0 -14
- package/test/integration/generated/internal/src/clientDefinitions.ts +0 -53
- package/test/integration/generated/internal/src/index.ts +0 -12
- package/test/integration/generated/internal/src/internalClient.ts +0 -35
- package/test/integration/generated/internal/src/logger.ts +0 -5
- package/test/integration/generated/internal/src/outputModels.ts +0 -17
- package/test/integration/generated/internal/src/parameters.ts +0 -45
- package/test/integration/generated/internal/src/responses.ts +0 -33
- package/test/integration/generated/internal/tspconfig.yaml +0 -14
- package/test/integration/generated/lro/lroCore/.eslintrc.json +0 -11
- package/test/integration/generated/lro/lroCore/README.md +0 -56
- package/test/integration/generated/lro/lroCore/api-extractor.json +0 -18
- package/test/integration/generated/lro/lroCore/package.json +0 -82
- package/test/integration/generated/lro/lroCore/rollup.config.js +0 -118
- package/test/integration/generated/lro/lroCore/src/clientDefinitions.ts +0 -54
- package/test/integration/generated/lro/lroCore/src/index.ts +0 -15
- package/test/integration/generated/lro/lroCore/src/isUnexpected.ts +0 -135
- package/test/integration/generated/lro/lroCore/src/logger.ts +0 -5
- package/test/integration/generated/lro/lroCore/src/models.ts +0 -8
- package/test/integration/generated/lro/lroCore/src/outputModels.ts +0 -50
- package/test/integration/generated/lro/lroCore/src/parameters.ts +0 -25
- package/test/integration/generated/lro/lroCore/src/pollingHelper.ts +0 -113
- package/test/integration/generated/lro/lroCore/src/responses.ts +0 -109
- package/test/integration/generated/lro/lroCore/src/specsAzureCoreLroStandard.ts +0 -35
- package/test/integration/generated/lro/lroCore/tsconfig.json +0 -25
- package/test/integration/generated/lro/lroCore/tspconfig.yaml +0 -14
- package/test/integration/generated/lro/lroRPC/.eslintrc.json +0 -11
- package/test/integration/generated/lro/lroRPC/README.md +0 -56
- package/test/integration/generated/lro/lroRPC/api-extractor.json +0 -18
- package/test/integration/generated/lro/lroRPC/package.json +0 -82
- package/test/integration/generated/lro/lroRPC/rollup.config.js +0 -118
- package/test/integration/generated/lro/lroRPC/src/clientDefinitions.ts +0 -79
- package/test/integration/generated/lro/lroRPC/src/index.ts +0 -15
- package/test/integration/generated/lro/lroRPC/src/isUnexpected.ts +0 -153
- package/test/integration/generated/lro/lroRPC/src/logger.ts +0 -5
- package/test/integration/generated/lro/lroRPC/src/models.ts +0 -8
- package/test/integration/generated/lro/lroRPC/src/outputModels.ts +0 -40
- package/test/integration/generated/lro/lroRPC/src/parameters.ts +0 -20
- package/test/integration/generated/lro/lroRPC/src/pollingHelper.ts +0 -127
- package/test/integration/generated/lro/lroRPC/src/responses.ts +0 -124
- package/test/integration/generated/lro/lroRPC/src/specsAzureCoreLroRpc.ts +0 -35
- package/test/integration/generated/lro/lroRPC/tsconfig.json +0 -25
- package/test/integration/generated/lro/lroRPC/tspconfig.yaml +0 -14
- package/test/integration/generated/models/inheritance/.eslintrc.json +0 -11
- package/test/integration/generated/models/inheritance/README.md +0 -56
- package/test/integration/generated/models/inheritance/api-extractor.json +0 -18
- package/test/integration/generated/models/inheritance/package.json +0 -80
- package/test/integration/generated/models/inheritance/rollup.config.js +0 -118
- package/test/integration/generated/models/inheritance/src/clientDefinitions.ts +0 -81
- package/test/integration/generated/models/inheritance/src/index.ts +0 -13
- package/test/integration/generated/models/inheritance/src/logger.ts +0 -5
- package/test/integration/generated/models/inheritance/src/models.ts +0 -52
- package/test/integration/generated/models/inheritance/src/outputModels.ts +0 -52
- package/test/integration/generated/models/inheritance/src/parameters.ts +0 -35
- package/test/integration/generated/models/inheritance/src/responses.ts +0 -56
- package/test/integration/generated/models/inheritance/src/typeModelInheritance.ts +0 -35
- package/test/integration/generated/models/inheritance/tsconfig.json +0 -25
- package/test/integration/generated/models/inheritance/tspconfig.yaml +0 -14
- package/test/integration/generated/models/propertyNullable/.eslintrc.json +0 -11
- package/test/integration/generated/models/propertyNullable/README.md +0 -56
- package/test/integration/generated/models/propertyNullable/api-extractor.json +0 -18
- package/test/integration/generated/models/propertyNullable/package.json +0 -80
- package/test/integration/generated/models/propertyNullable/rollup.config.js +0 -118
- package/test/integration/generated/models/propertyNullable/src/clientDefinitions.ts +0 -227
- package/test/integration/generated/models/propertyNullable/src/index.ts +0 -13
- package/test/integration/generated/models/propertyNullable/src/logger.ts +0 -5
- package/test/integration/generated/models/propertyNullable/src/models.ts +0 -56
- package/test/integration/generated/models/propertyNullable/src/outputModels.ts +0 -56
- package/test/integration/generated/models/propertyNullable/src/parameters.ts +0 -197
- package/test/integration/generated/models/propertyNullable/src/responses.ts +0 -144
- package/test/integration/generated/models/propertyNullable/src/typePropertyNullable.ts +0 -35
- package/test/integration/generated/models/propertyNullable/tsconfig.json +0 -25
- package/test/integration/generated/models/propertyNullable/tspconfig.yaml +0 -14
- package/test/integration/generated/models/propertyOptional/.eslintrc.json +0 -11
- package/test/integration/generated/models/propertyOptional/README.md +0 -56
- package/test/integration/generated/models/propertyOptional/api-extractor.json +0 -18
- package/test/integration/generated/models/propertyOptional/package.json +0 -80
- package/test/integration/generated/models/propertyOptional/rollup.config.js +0 -118
- package/test/integration/generated/models/propertyOptional/src/clientDefinitions.ts +0 -263
- package/test/integration/generated/models/propertyOptional/src/index.ts +0 -13
- package/test/integration/generated/models/propertyOptional/src/logger.ts +0 -5
- package/test/integration/generated/models/propertyOptional/src/models.ts +0 -46
- package/test/integration/generated/models/propertyOptional/src/outputModels.ts +0 -46
- package/test/integration/generated/models/propertyOptional/src/parameters.ts +0 -125
- package/test/integration/generated/models/propertyOptional/src/responses.ts +0 -169
- package/test/integration/generated/models/propertyOptional/src/typePropertyOptional.ts +0 -35
- package/test/integration/generated/models/propertyOptional/tsconfig.json +0 -25
- package/test/integration/generated/models/propertyOptional/tspconfig.yaml +0 -14
- package/test/integration/generated/models/propertyTypes/.eslintrc.json +0 -11
- package/test/integration/generated/models/propertyTypes/README.md +0 -56
- package/test/integration/generated/models/propertyTypes/api-extractor.json +0 -18
- package/test/integration/generated/models/propertyTypes/package.json +0 -80
- package/test/integration/generated/models/propertyTypes/rollup.config.js +0 -118
- package/test/integration/generated/models/propertyTypes/src/clientDefinitions.ts +0 -310
- package/test/integration/generated/models/propertyTypes/src/index.ts +0 -13
- package/test/integration/generated/models/propertyTypes/src/logger.ts +0 -5
- package/test/integration/generated/models/propertyTypes/src/models.ts +0 -123
- package/test/integration/generated/models/propertyTypes/src/outputModels.ts +0 -123
- package/test/integration/generated/models/propertyTypes/src/parameters.ts +0 -189
- package/test/integration/generated/models/propertyTypes/src/responses.ts +0 -234
- package/test/integration/generated/models/propertyTypes/src/typePropertyValueTypes.ts +0 -35
- package/test/integration/generated/models/propertyTypes/tsconfig.json +0 -25
- package/test/integration/generated/models/propertyTypes/tspconfig.yaml +0 -14
- package/test/integration/generated/models/usage/.eslintrc.json +0 -11
- package/test/integration/generated/models/usage/README.md +0 -56
- package/test/integration/generated/models/usage/api-extractor.json +0 -18
- package/test/integration/generated/models/usage/package.json +0 -80
- package/test/integration/generated/models/usage/rollup.config.js +0 -118
- package/test/integration/generated/models/usage/src/clientDefinitions.ts +0 -41
- package/test/integration/generated/models/usage/src/index.ts +0 -13
- package/test/integration/generated/models/usage/src/logger.ts +0 -5
- package/test/integration/generated/models/usage/src/models.ts +0 -12
- package/test/integration/generated/models/usage/src/outputModels.ts +0 -12
- package/test/integration/generated/models/usage/src/parameters.ts +0 -19
- package/test/integration/generated/models/usage/src/responses.ts +0 -22
- package/test/integration/generated/models/usage/src/typeModelUsage.ts +0 -35
- package/test/integration/generated/models/usage/tsconfig.json +0 -25
- package/test/integration/generated/models/usage/tspconfig.yaml +0 -14
- package/test/integration/generated/models/visibility/.eslintrc.json +0 -11
- package/test/integration/generated/models/visibility/README.md +0 -56
- package/test/integration/generated/models/visibility/api-extractor.json +0 -18
- package/test/integration/generated/models/visibility/package.json +0 -80
- package/test/integration/generated/models/visibility/rollup.config.js +0 -118
- package/test/integration/generated/models/visibility/src/clientDefinitions.ts +0 -40
- package/test/integration/generated/models/visibility/src/index.ts +0 -13
- package/test/integration/generated/models/visibility/src/logger.ts +0 -5
- package/test/integration/generated/models/visibility/src/models.ts +0 -14
- package/test/integration/generated/models/visibility/src/outputModels.ts +0 -16
- package/test/integration/generated/models/visibility/src/parameters.ts +0 -41
- package/test/integration/generated/models/visibility/src/responses.ts +0 -36
- package/test/integration/generated/models/visibility/src/typeModelVisibility.ts +0 -35
- package/test/integration/generated/models/visibility/tsconfig.json +0 -25
- package/test/integration/generated/models/visibility/tspconfig.yaml +0 -14
- package/test/integration/generated/parameters/collection-format/src/clientDefinitions.ts +0 -63
- package/test/integration/generated/parameters/collection-format/src/collectionFormatClient.ts +0 -35
- package/test/integration/generated/parameters/collection-format/src/index.ts +0 -12
- package/test/integration/generated/parameters/collection-format/src/logger.ts +0 -5
- package/test/integration/generated/parameters/collection-format/src/parameters.ts +0 -71
- package/test/integration/generated/parameters/collection-format/src/responses.ts +0 -34
- package/test/integration/generated/parameters/collection-format/src/serializeHelper.ts +0 -28
- package/test/integration/generated/parameters/collection-format/tspconfig.yaml +0 -14
- package/test/integration/generated/parameters/spread/src/clientDefinitions.ts +0 -61
- package/test/integration/generated/parameters/spread/src/index.ts +0 -12
- package/test/integration/generated/parameters/spread/src/logger.ts +0 -5
- package/test/integration/generated/parameters/spread/src/models.ts +0 -7
- package/test/integration/generated/parameters/spread/src/parameters.ts +0 -61
- package/test/integration/generated/parameters/spread/src/parametersSpread.ts +0 -35
- package/test/integration/generated/parameters/spread/src/responses.ts +0 -25
- package/test/integration/generated/parameters/spread/tspconfig.yaml +0 -12
- package/test/integration/generated/projection/src/clientDefinitions.ts +0 -71
- package/test/integration/generated/projection/src/index.ts +0 -12
- package/test/integration/generated/projection/src/logger.ts +0 -5
- package/test/integration/generated/projection/src/models.ts +0 -22
- package/test/integration/generated/projection/src/parameters.ts +0 -48
- package/test/integration/generated/projection/src/projectionClient.ts +0 -35
- package/test/integration/generated/projection/src/responses.ts +0 -34
- package/test/integration/generated/projection/tspconfig.yaml +0 -14
- package/test/integration/generated/resiliency/srvDriven1/.eslintrc.json +0 -11
- package/test/integration/generated/resiliency/srvDriven1/README.md +0 -56
- package/test/integration/generated/resiliency/srvDriven1/api-extractor.json +0 -18
- package/test/integration/generated/resiliency/srvDriven1/package.json +0 -80
- package/test/integration/generated/resiliency/srvDriven1/rollup.config.js +0 -118
- package/test/integration/generated/resiliency/srvDriven1/src/clientDefinitions.ts +0 -46
- package/test/integration/generated/resiliency/srvDriven1/src/index.ts +0 -11
- package/test/integration/generated/resiliency/srvDriven1/src/logger.ts +0 -5
- package/test/integration/generated/resiliency/srvDriven1/src/parameters.ts +0 -30
- package/test/integration/generated/resiliency/srvDriven1/src/responses.ts +0 -19
- package/test/integration/generated/resiliency/srvDriven1/src/serviceDrivenOldClient.ts +0 -43
- package/test/integration/generated/resiliency/srvDriven1/tsconfig.json +0 -25
- package/test/integration/generated/resiliency/srvDriven1/tspconfig.yaml +0 -15
- package/test/integration/generated/resiliency/srvDriven2/.eslintrc.json +0 -11
- package/test/integration/generated/resiliency/srvDriven2/README.md +0 -65
- package/test/integration/generated/resiliency/srvDriven2/api-extractor.json +0 -18
- package/test/integration/generated/resiliency/srvDriven2/package.json +0 -80
- package/test/integration/generated/resiliency/srvDriven2/rollup.config.js +0 -118
- package/test/integration/generated/resiliency/srvDriven2/src/clientDefinitions.ts +0 -57
- package/test/integration/generated/resiliency/srvDriven2/src/index.ts +0 -11
- package/test/integration/generated/resiliency/srvDriven2/src/logger.ts +0 -5
- package/test/integration/generated/resiliency/srvDriven2/src/parameters.ts +0 -45
- package/test/integration/generated/resiliency/srvDriven2/src/responses.ts +0 -24
- package/test/integration/generated/resiliency/srvDriven2/src/serviceDrivenNewClient.ts +0 -43
- package/test/integration/generated/resiliency/srvDriven2/tsconfig.json +0 -25
- package/test/integration/generated/resiliency/srvDriven2/tspconfig.yaml +0 -15
- package/test/integration/generated/server/path/multiple/src/clientDefinitions.ts +0 -35
- package/test/integration/generated/server/path/multiple/src/index.ts +0 -11
- package/test/integration/generated/server/path/multiple/src/logger.ts +0 -5
- package/test/integration/generated/server/path/multiple/src/multipleParamInServerPathClient.ts +0 -43
- package/test/integration/generated/server/path/multiple/src/parameters.ts +0 -7
- package/test/integration/generated/server/path/multiple/src/responses.ts +0 -14
- package/test/integration/generated/server/path/multiple/tspconfig.yaml +0 -14
- package/test/integration/generated/server/path/single/src/clientDefinitions.ts +0 -19
- package/test/integration/generated/server/path/single/src/index.ts +0 -11
- package/test/integration/generated/server/path/single/src/logger.ts +0 -5
- package/test/integration/generated/server/path/single/src/parameters.ts +0 -6
- package/test/integration/generated/server/path/single/src/responses.ts +0 -9
- package/test/integration/generated/server/path/single/src/singleParamInServerPathClient.ts +0 -38
- package/test/integration/generated/server/path/single/tspconfig.yaml +0 -14
- package/test/integration/generated/specialWords/src/clientDefinitions.ts +0 -61
- package/test/integration/generated/specialWords/src/index.ts +0 -13
- package/test/integration/generated/specialWords/src/logger.ts +0 -5
- package/test/integration/generated/specialWords/src/models.ts +0 -17
- package/test/integration/generated/specialWords/src/outputModels.ts +0 -17
- package/test/integration/generated/specialWords/src/parameters.ts +0 -37
- package/test/integration/generated/specialWords/src/responses.ts +0 -31
- package/test/integration/generated/specialWords/src/specialWordsClient.ts +0 -35
- package/test/integration/generated/specialWords/tspconfig.yaml +0 -14
- package/test/integration/generated/unions/src/clientDefinitions.ts +0 -53
- package/test/integration/generated/unions/src/index.ts +0 -12
- package/test/integration/generated/unions/src/logger.ts +0 -5
- package/test/integration/generated/unions/src/models.ts +0 -27
- package/test/integration/generated/unions/src/parameters.ts +0 -34
- package/test/integration/generated/unions/src/responses.ts +0 -24
- package/test/integration/generated/unions/src/unionsClient.ts +0 -35
- package/test/integration/generated/unions/tspconfig.yaml +0 -14
- package/test/integration/internal.spec.ts +0 -76
- package/test/integration/lroCore.spec.ts +0 -89
- package/test/integration/modelInheritance.spec.ts +0 -192
- package/test/integration/modelPropertyNullable.spec.ts +0 -115
- package/test/integration/modelPropertyOptional.spec.ts +0 -362
- package/test/integration/modelPropertyType.spec.ts +0 -135
- package/test/integration/modelUsage.spec.ts +0 -47
- package/test/integration/projection.spec.ts +0 -102
- package/test/integration/resiliencyDpgCustomization.spec.ts +0 -147
- package/test/integration/server.spec.ts +0 -59
- package/test/integration/specialWords.spec.ts +0 -73
- package/test/integration/spreadParameters.spec.ts +0 -82
- package/test/integration/unions.spec.ts +0 -69
- package/test/tsconfig.json +0 -4
- package/test/unit/apiVersion.spec.ts +0 -400
- package/test/unit/azureCoreOperationsGenerator.spec.ts +0 -71
- package/test/unit/clientDefinitionGenerator.spec.ts +0 -73
- package/test/unit/clientFactoryGenerator.spec.ts +0 -404
- package/test/unit/docsGenerator.spec.ts +0 -201
- package/test/unit/modelsGenerator.spec.ts +0 -1529
- package/test/unit/parametersGenerator.spec.ts +0 -561
- package/test/unit/responsesGenerator.spec.ts +0 -462
- package/test/unit/spreadAndAlias.spec.ts +0 -200
- package/test/unit/util/emitUtil.ts +0 -166
- package/test/unit/util/testUtil.ts +0 -88
- package/test/util/customBearerTokenTestingPolicy.ts +0 -78
- package/test/util/matrix.ts +0 -48
- package/tsconfig.json +0 -36
- package/tsconfig.test.json +0 -7
- package/typespec-ts.build.log +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
import TypePropertyValueTypes from "./typePropertyValueTypes";
|
|
5
|
-
|
|
6
|
-
export * from "./typePropertyValueTypes";
|
|
7
|
-
export * from "./parameters";
|
|
8
|
-
export * from "./responses";
|
|
9
|
-
export * from "./clientDefinitions";
|
|
10
|
-
export * from "./models";
|
|
11
|
-
export * from "./outputModels";
|
|
12
|
-
|
|
13
|
-
export default TypePropertyValueTypes;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
/** Model with a boolean property */
|
|
5
|
-
export interface BooleanProperty {
|
|
6
|
-
/** Property */
|
|
7
|
-
property: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/** Model with a string property */
|
|
11
|
-
export interface StringProperty {
|
|
12
|
-
/** Property */
|
|
13
|
-
property: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** Model with a bytes property */
|
|
17
|
-
export interface BytesProperty {
|
|
18
|
-
/** Property */
|
|
19
|
-
property: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** Model with a int property */
|
|
23
|
-
export interface IntProperty {
|
|
24
|
-
/** Property */
|
|
25
|
-
property: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** Model with a float property */
|
|
29
|
-
export interface FloatProperty {
|
|
30
|
-
/** Property */
|
|
31
|
-
property: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** Model with a datetime property */
|
|
35
|
-
export interface DatetimeProperty {
|
|
36
|
-
/** Property */
|
|
37
|
-
property: Date | string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** Model with a duration property */
|
|
41
|
-
export interface DurationProperty {
|
|
42
|
-
/** Property */
|
|
43
|
-
property: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** Model with enum properties */
|
|
47
|
-
export interface EnumProperty {
|
|
48
|
-
/** Property */
|
|
49
|
-
property: "ValueOne" | "ValueTwo";
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** Model with extensible enum properties */
|
|
53
|
-
export interface ExtensibleEnumProperty {
|
|
54
|
-
/**
|
|
55
|
-
* Property
|
|
56
|
-
*
|
|
57
|
-
* Possible values: ValueOne, ValueTwo
|
|
58
|
-
*/
|
|
59
|
-
property: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** Model with model properties */
|
|
63
|
-
export interface ModelProperty {
|
|
64
|
-
/** Property */
|
|
65
|
-
property: InnerModel;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** Inner model. Will be a property type for ModelWithModelProperties */
|
|
69
|
-
export interface InnerModel {
|
|
70
|
-
/** Required string property */
|
|
71
|
-
property: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** Model with collection string properties */
|
|
75
|
-
export interface CollectionsStringProperty {
|
|
76
|
-
/** Property */
|
|
77
|
-
property: string[];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** Model with collection int properties */
|
|
81
|
-
export interface CollectionsIntProperty {
|
|
82
|
-
/** Property */
|
|
83
|
-
property: number[];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** Model with collection model properties */
|
|
87
|
-
export interface CollectionsModelProperty {
|
|
88
|
-
/** Property */
|
|
89
|
-
property: Array<InnerModel>;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Model with dictionary string properties */
|
|
93
|
-
export interface DictionaryStringProperty {
|
|
94
|
-
/** Property */
|
|
95
|
-
property: Record<string, string>;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** Model with a property never. (This property should not be included). */
|
|
99
|
-
export interface NeverProperty {}
|
|
100
|
-
|
|
101
|
-
/** Model with a property unknown, and the data is a string. */
|
|
102
|
-
export interface UnknownStringProperty {
|
|
103
|
-
/** Property */
|
|
104
|
-
property: unknown;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/** Model with a property unknown, and the data is a int32. */
|
|
108
|
-
export interface UnknownIntProperty {
|
|
109
|
-
/** Property */
|
|
110
|
-
property: unknown;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/** Model with a property unknown, and the data is a dictionnary. */
|
|
114
|
-
export interface UnknownDictProperty {
|
|
115
|
-
/** Property */
|
|
116
|
-
property: unknown;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** Model with a property unknown, and the data is an array. */
|
|
120
|
-
export interface UnknownArrayProperty {
|
|
121
|
-
/** Property */
|
|
122
|
-
property: unknown;
|
|
123
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
/** Model with a boolean property */
|
|
5
|
-
export interface BooleanPropertyOutput {
|
|
6
|
-
/** Property */
|
|
7
|
-
property: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/** Model with a string property */
|
|
11
|
-
export interface StringPropertyOutput {
|
|
12
|
-
/** Property */
|
|
13
|
-
property: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** Model with a bytes property */
|
|
17
|
-
export interface BytesPropertyOutput {
|
|
18
|
-
/** Property */
|
|
19
|
-
property: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** Model with a int property */
|
|
23
|
-
export interface IntPropertyOutput {
|
|
24
|
-
/** Property */
|
|
25
|
-
property: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** Model with a float property */
|
|
29
|
-
export interface FloatPropertyOutput {
|
|
30
|
-
/** Property */
|
|
31
|
-
property: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** Model with a datetime property */
|
|
35
|
-
export interface DatetimePropertyOutput {
|
|
36
|
-
/** Property */
|
|
37
|
-
property: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** Model with a duration property */
|
|
41
|
-
export interface DurationPropertyOutput {
|
|
42
|
-
/** Property */
|
|
43
|
-
property: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** Model with enum properties */
|
|
47
|
-
export interface EnumPropertyOutput {
|
|
48
|
-
/** Property */
|
|
49
|
-
property: "ValueOne" | "ValueTwo";
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** Model with extensible enum properties */
|
|
53
|
-
export interface ExtensibleEnumPropertyOutput {
|
|
54
|
-
/**
|
|
55
|
-
* Property
|
|
56
|
-
*
|
|
57
|
-
* Possible values: ValueOne, ValueTwo
|
|
58
|
-
*/
|
|
59
|
-
property: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** Model with model properties */
|
|
63
|
-
export interface ModelPropertyOutput {
|
|
64
|
-
/** Property */
|
|
65
|
-
property: InnerModelOutput;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** Inner model. Will be a property type for ModelWithModelProperties */
|
|
69
|
-
export interface InnerModelOutput {
|
|
70
|
-
/** Required string property */
|
|
71
|
-
property: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** Model with collection string properties */
|
|
75
|
-
export interface CollectionsStringPropertyOutput {
|
|
76
|
-
/** Property */
|
|
77
|
-
property: string[];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** Model with collection int properties */
|
|
81
|
-
export interface CollectionsIntPropertyOutput {
|
|
82
|
-
/** Property */
|
|
83
|
-
property: number[];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** Model with collection model properties */
|
|
87
|
-
export interface CollectionsModelPropertyOutput {
|
|
88
|
-
/** Property */
|
|
89
|
-
property: Array<InnerModelOutput>;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Model with dictionary string properties */
|
|
93
|
-
export interface DictionaryStringPropertyOutput {
|
|
94
|
-
/** Property */
|
|
95
|
-
property: Record<string, string>;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** Model with a property never. (This property should not be included). */
|
|
99
|
-
export interface NeverPropertyOutput {}
|
|
100
|
-
|
|
101
|
-
/** Model with a property unknown, and the data is a string. */
|
|
102
|
-
export interface UnknownStringPropertyOutput {
|
|
103
|
-
/** Property */
|
|
104
|
-
property: any;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/** Model with a property unknown, and the data is a int32. */
|
|
108
|
-
export interface UnknownIntPropertyOutput {
|
|
109
|
-
/** Property */
|
|
110
|
-
property: any;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/** Model with a property unknown, and the data is a dictionnary. */
|
|
114
|
-
export interface UnknownDictPropertyOutput {
|
|
115
|
-
/** Property */
|
|
116
|
-
property: any;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** Model with a property unknown, and the data is an array. */
|
|
120
|
-
export interface UnknownArrayPropertyOutput {
|
|
121
|
-
/** Property */
|
|
122
|
-
property: any;
|
|
123
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
import { RequestParameters } from "@azure-rest/core-client";
|
|
5
|
-
import {
|
|
6
|
-
BooleanProperty,
|
|
7
|
-
StringProperty,
|
|
8
|
-
BytesProperty,
|
|
9
|
-
IntProperty,
|
|
10
|
-
FloatProperty,
|
|
11
|
-
DatetimeProperty,
|
|
12
|
-
DurationProperty,
|
|
13
|
-
EnumProperty,
|
|
14
|
-
ExtensibleEnumProperty,
|
|
15
|
-
ModelProperty,
|
|
16
|
-
CollectionsStringProperty,
|
|
17
|
-
CollectionsIntProperty,
|
|
18
|
-
CollectionsModelProperty,
|
|
19
|
-
DictionaryStringProperty,
|
|
20
|
-
NeverProperty,
|
|
21
|
-
UnknownStringProperty,
|
|
22
|
-
UnknownIntProperty,
|
|
23
|
-
UnknownDictProperty,
|
|
24
|
-
UnknownArrayProperty,
|
|
25
|
-
} from "./models";
|
|
26
|
-
|
|
27
|
-
export type BooleanModelGetParameters = RequestParameters;
|
|
28
|
-
|
|
29
|
-
export interface BooleanModelPutBodyParam {
|
|
30
|
-
/** body */
|
|
31
|
-
body: BooleanProperty;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type BooleanModelPutParameters = BooleanModelPutBodyParam &
|
|
35
|
-
RequestParameters;
|
|
36
|
-
export type StringModelGetParameters = RequestParameters;
|
|
37
|
-
|
|
38
|
-
export interface StringModelPutBodyParam {
|
|
39
|
-
/** body */
|
|
40
|
-
body: StringProperty;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type StringModelPutParameters = StringModelPutBodyParam &
|
|
44
|
-
RequestParameters;
|
|
45
|
-
export type BytesGetParameters = RequestParameters;
|
|
46
|
-
|
|
47
|
-
export interface BytesPutBodyParam {
|
|
48
|
-
/** body */
|
|
49
|
-
body: BytesProperty;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export type BytesPutParameters = BytesPutBodyParam & RequestParameters;
|
|
53
|
-
export type IntGetParameters = RequestParameters;
|
|
54
|
-
|
|
55
|
-
export interface IntPutBodyParam {
|
|
56
|
-
/** body */
|
|
57
|
-
body: IntProperty;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type IntPutParameters = IntPutBodyParam & RequestParameters;
|
|
61
|
-
export type FloatGetParameters = RequestParameters;
|
|
62
|
-
|
|
63
|
-
export interface FloatPutBodyParam {
|
|
64
|
-
/** body */
|
|
65
|
-
body: FloatProperty;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type FloatPutParameters = FloatPutBodyParam & RequestParameters;
|
|
69
|
-
export type DatetimeGetParameters = RequestParameters;
|
|
70
|
-
|
|
71
|
-
export interface DatetimePutBodyParam {
|
|
72
|
-
/** body */
|
|
73
|
-
body: DatetimeProperty;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export type DatetimePutParameters = DatetimePutBodyParam & RequestParameters;
|
|
77
|
-
export type DurationGetParameters = RequestParameters;
|
|
78
|
-
|
|
79
|
-
export interface DurationPutBodyParam {
|
|
80
|
-
/** body */
|
|
81
|
-
body: DurationProperty;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export type DurationPutParameters = DurationPutBodyParam & RequestParameters;
|
|
85
|
-
export type EnumGetParameters = RequestParameters;
|
|
86
|
-
|
|
87
|
-
export interface EnumPutBodyParam {
|
|
88
|
-
/** body */
|
|
89
|
-
body: EnumProperty;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export type EnumPutParameters = EnumPutBodyParam & RequestParameters;
|
|
93
|
-
export type ExtensibleEnumGetParameters = RequestParameters;
|
|
94
|
-
|
|
95
|
-
export interface ExtensibleEnumPutBodyParam {
|
|
96
|
-
/** body */
|
|
97
|
-
body: ExtensibleEnumProperty;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type ExtensibleEnumPutParameters = ExtensibleEnumPutBodyParam &
|
|
101
|
-
RequestParameters;
|
|
102
|
-
export type ModelGetParameters = RequestParameters;
|
|
103
|
-
|
|
104
|
-
export interface ModelPutBodyParam {
|
|
105
|
-
/** body */
|
|
106
|
-
body: ModelProperty;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type ModelPutParameters = ModelPutBodyParam & RequestParameters;
|
|
110
|
-
export type CollectionsStringGetParameters = RequestParameters;
|
|
111
|
-
|
|
112
|
-
export interface CollectionsStringPutBodyParam {
|
|
113
|
-
/** body */
|
|
114
|
-
body: CollectionsStringProperty;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export type CollectionsStringPutParameters = CollectionsStringPutBodyParam &
|
|
118
|
-
RequestParameters;
|
|
119
|
-
export type CollectionsIntGetParameters = RequestParameters;
|
|
120
|
-
|
|
121
|
-
export interface CollectionsIntPutBodyParam {
|
|
122
|
-
/** body */
|
|
123
|
-
body: CollectionsIntProperty;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export type CollectionsIntPutParameters = CollectionsIntPutBodyParam &
|
|
127
|
-
RequestParameters;
|
|
128
|
-
export type CollectionsModelGetParameters = RequestParameters;
|
|
129
|
-
|
|
130
|
-
export interface CollectionsModelPutBodyParam {
|
|
131
|
-
/** body */
|
|
132
|
-
body: CollectionsModelProperty;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export type CollectionsModelPutParameters = CollectionsModelPutBodyParam &
|
|
136
|
-
RequestParameters;
|
|
137
|
-
export type DictionaryStringGetParameters = RequestParameters;
|
|
138
|
-
|
|
139
|
-
export interface DictionaryStringPutBodyParam {
|
|
140
|
-
/** body */
|
|
141
|
-
body: DictionaryStringProperty;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export type DictionaryStringPutParameters = DictionaryStringPutBodyParam &
|
|
145
|
-
RequestParameters;
|
|
146
|
-
export type NeverGetParameters = RequestParameters;
|
|
147
|
-
|
|
148
|
-
export interface NeverPutBodyParam {
|
|
149
|
-
/** body */
|
|
150
|
-
body: NeverProperty;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export type NeverPutParameters = NeverPutBodyParam & RequestParameters;
|
|
154
|
-
export type UnknownStringGetParameters = RequestParameters;
|
|
155
|
-
|
|
156
|
-
export interface UnknownStringPutBodyParam {
|
|
157
|
-
/** body */
|
|
158
|
-
body: UnknownStringProperty;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export type UnknownStringPutParameters = UnknownStringPutBodyParam &
|
|
162
|
-
RequestParameters;
|
|
163
|
-
export type UnknownIntGetParameters = RequestParameters;
|
|
164
|
-
|
|
165
|
-
export interface UnknownIntPutBodyParam {
|
|
166
|
-
/** body */
|
|
167
|
-
body: UnknownIntProperty;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export type UnknownIntPutParameters = UnknownIntPutBodyParam &
|
|
171
|
-
RequestParameters;
|
|
172
|
-
export type UnknownDictGetParameters = RequestParameters;
|
|
173
|
-
|
|
174
|
-
export interface UnknownDictPutBodyParam {
|
|
175
|
-
/** body */
|
|
176
|
-
body: UnknownDictProperty;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export type UnknownDictPutParameters = UnknownDictPutBodyParam &
|
|
180
|
-
RequestParameters;
|
|
181
|
-
export type UnknownArrayGetParameters = RequestParameters;
|
|
182
|
-
|
|
183
|
-
export interface UnknownArrayPutBodyParam {
|
|
184
|
-
/** body */
|
|
185
|
-
body: UnknownArrayProperty;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export type UnknownArrayPutParameters = UnknownArrayPutBodyParam &
|
|
189
|
-
RequestParameters;
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
import { HttpResponse } from "@azure-rest/core-client";
|
|
5
|
-
import {
|
|
6
|
-
BooleanPropertyOutput,
|
|
7
|
-
StringPropertyOutput,
|
|
8
|
-
BytesPropertyOutput,
|
|
9
|
-
IntPropertyOutput,
|
|
10
|
-
FloatPropertyOutput,
|
|
11
|
-
DatetimePropertyOutput,
|
|
12
|
-
DurationPropertyOutput,
|
|
13
|
-
EnumPropertyOutput,
|
|
14
|
-
ExtensibleEnumPropertyOutput,
|
|
15
|
-
ModelPropertyOutput,
|
|
16
|
-
CollectionsStringPropertyOutput,
|
|
17
|
-
CollectionsIntPropertyOutput,
|
|
18
|
-
CollectionsModelPropertyOutput,
|
|
19
|
-
DictionaryStringPropertyOutput,
|
|
20
|
-
NeverPropertyOutput,
|
|
21
|
-
UnknownStringPropertyOutput,
|
|
22
|
-
UnknownIntPropertyOutput,
|
|
23
|
-
UnknownDictPropertyOutput,
|
|
24
|
-
UnknownArrayPropertyOutput,
|
|
25
|
-
} from "./outputModels";
|
|
26
|
-
|
|
27
|
-
/** The request has succeeded. */
|
|
28
|
-
export interface BooleanModelGet200Response extends HttpResponse {
|
|
29
|
-
status: "200";
|
|
30
|
-
body: BooleanPropertyOutput;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
34
|
-
export interface BooleanModelPut204Response extends HttpResponse {
|
|
35
|
-
status: "204";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** The request has succeeded. */
|
|
39
|
-
export interface StringModelGet200Response extends HttpResponse {
|
|
40
|
-
status: "200";
|
|
41
|
-
body: StringPropertyOutput;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
45
|
-
export interface StringModelPut204Response extends HttpResponse {
|
|
46
|
-
status: "204";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** The request has succeeded. */
|
|
50
|
-
export interface BytesGet200Response extends HttpResponse {
|
|
51
|
-
status: "200";
|
|
52
|
-
body: BytesPropertyOutput;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
56
|
-
export interface BytesPut204Response extends HttpResponse {
|
|
57
|
-
status: "204";
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** The request has succeeded. */
|
|
61
|
-
export interface IntGet200Response extends HttpResponse {
|
|
62
|
-
status: "200";
|
|
63
|
-
body: IntPropertyOutput;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
67
|
-
export interface IntPut204Response extends HttpResponse {
|
|
68
|
-
status: "204";
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/** The request has succeeded. */
|
|
72
|
-
export interface FloatGet200Response extends HttpResponse {
|
|
73
|
-
status: "200";
|
|
74
|
-
body: FloatPropertyOutput;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
78
|
-
export interface FloatPut204Response extends HttpResponse {
|
|
79
|
-
status: "204";
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** The request has succeeded. */
|
|
83
|
-
export interface DatetimeGet200Response extends HttpResponse {
|
|
84
|
-
status: "200";
|
|
85
|
-
body: DatetimePropertyOutput;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
89
|
-
export interface DatetimePut204Response extends HttpResponse {
|
|
90
|
-
status: "204";
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/** The request has succeeded. */
|
|
94
|
-
export interface DurationGet200Response extends HttpResponse {
|
|
95
|
-
status: "200";
|
|
96
|
-
body: DurationPropertyOutput;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
100
|
-
export interface DurationPut204Response extends HttpResponse {
|
|
101
|
-
status: "204";
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** The request has succeeded. */
|
|
105
|
-
export interface EnumGet200Response extends HttpResponse {
|
|
106
|
-
status: "200";
|
|
107
|
-
body: EnumPropertyOutput;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
111
|
-
export interface EnumPut204Response extends HttpResponse {
|
|
112
|
-
status: "204";
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/** The request has succeeded. */
|
|
116
|
-
export interface ExtensibleEnumGet200Response extends HttpResponse {
|
|
117
|
-
status: "200";
|
|
118
|
-
body: ExtensibleEnumPropertyOutput;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
122
|
-
export interface ExtensibleEnumPut204Response extends HttpResponse {
|
|
123
|
-
status: "204";
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** The request has succeeded. */
|
|
127
|
-
export interface ModelGet200Response extends HttpResponse {
|
|
128
|
-
status: "200";
|
|
129
|
-
body: ModelPropertyOutput;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
133
|
-
export interface ModelPut204Response extends HttpResponse {
|
|
134
|
-
status: "204";
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/** The request has succeeded. */
|
|
138
|
-
export interface CollectionsStringGet200Response extends HttpResponse {
|
|
139
|
-
status: "200";
|
|
140
|
-
body: CollectionsStringPropertyOutput;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
144
|
-
export interface CollectionsStringPut204Response extends HttpResponse {
|
|
145
|
-
status: "204";
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/** The request has succeeded. */
|
|
149
|
-
export interface CollectionsIntGet200Response extends HttpResponse {
|
|
150
|
-
status: "200";
|
|
151
|
-
body: CollectionsIntPropertyOutput;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
155
|
-
export interface CollectionsIntPut204Response extends HttpResponse {
|
|
156
|
-
status: "204";
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/** The request has succeeded. */
|
|
160
|
-
export interface CollectionsModelGet200Response extends HttpResponse {
|
|
161
|
-
status: "200";
|
|
162
|
-
body: CollectionsModelPropertyOutput;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
166
|
-
export interface CollectionsModelPut204Response extends HttpResponse {
|
|
167
|
-
status: "204";
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/** The request has succeeded. */
|
|
171
|
-
export interface DictionaryStringGet200Response extends HttpResponse {
|
|
172
|
-
status: "200";
|
|
173
|
-
body: DictionaryStringPropertyOutput;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
177
|
-
export interface DictionaryStringPut204Response extends HttpResponse {
|
|
178
|
-
status: "204";
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** The request has succeeded. */
|
|
182
|
-
export interface NeverGet200Response extends HttpResponse {
|
|
183
|
-
status: "200";
|
|
184
|
-
body: NeverPropertyOutput;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
188
|
-
export interface NeverPut204Response extends HttpResponse {
|
|
189
|
-
status: "204";
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/** The request has succeeded. */
|
|
193
|
-
export interface UnknownStringGet200Response extends HttpResponse {
|
|
194
|
-
status: "200";
|
|
195
|
-
body: UnknownStringPropertyOutput;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
199
|
-
export interface UnknownStringPut204Response extends HttpResponse {
|
|
200
|
-
status: "204";
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/** The request has succeeded. */
|
|
204
|
-
export interface UnknownIntGet200Response extends HttpResponse {
|
|
205
|
-
status: "200";
|
|
206
|
-
body: UnknownIntPropertyOutput;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
210
|
-
export interface UnknownIntPut204Response extends HttpResponse {
|
|
211
|
-
status: "204";
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/** The request has succeeded. */
|
|
215
|
-
export interface UnknownDictGet200Response extends HttpResponse {
|
|
216
|
-
status: "200";
|
|
217
|
-
body: UnknownDictPropertyOutput;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
221
|
-
export interface UnknownDictPut204Response extends HttpResponse {
|
|
222
|
-
status: "204";
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/** The request has succeeded. */
|
|
226
|
-
export interface UnknownArrayGet200Response extends HttpResponse {
|
|
227
|
-
status: "200";
|
|
228
|
-
body: UnknownArrayPropertyOutput;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/** There is no content to send for this request, but the headers may be useful. */
|
|
232
|
-
export interface UnknownArrayPut204Response extends HttpResponse {
|
|
233
|
-
status: "204";
|
|
234
|
-
}
|