@azure-tools/typespec-ts 0.54.0 → 0.55.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/dist/src/contextManager.d.ts +5 -5
- package/dist/src/contextManager.d.ts.map +1 -1
- package/dist/src/contextManager.js +3 -3
- package/dist/src/contextManager.js.map +1 -1
- package/dist/src/framework/declaration.d.ts +1 -1
- package/dist/src/framework/declaration.d.ts.map +1 -1
- package/dist/src/framework/declaration.js +2 -4
- package/dist/src/framework/declaration.js.map +1 -1
- package/dist/src/framework/dependency.d.ts.map +1 -1
- package/dist/src/framework/hooks/binder.d.ts +1 -1
- package/dist/src/framework/hooks/binder.d.ts.map +1 -1
- package/dist/src/framework/hooks/binder.js +31 -40
- package/dist/src/framework/hooks/binder.js.map +1 -1
- package/dist/src/framework/hooks/sdkTypes.d.ts +1 -1
- package/dist/src/framework/hooks/sdkTypes.d.ts.map +1 -1
- package/dist/src/framework/hooks/sdkTypes.js +8 -12
- package/dist/src/framework/hooks/sdkTypes.js.map +1 -1
- package/dist/src/framework/hooks/useDependencies.d.ts.map +1 -1
- package/dist/src/framework/hooks/useDependencies.js +1 -1
- package/dist/src/framework/hooks/useDependencies.js.map +1 -1
- package/dist/src/framework/load-static-helpers.d.ts +1 -1
- package/dist/src/framework/load-static-helpers.d.ts.map +1 -1
- package/dist/src/framework/load-static-helpers.js +17 -31
- package/dist/src/framework/load-static-helpers.js.map +1 -1
- package/dist/src/framework/reference.d.ts.map +1 -1
- package/dist/src/framework/reference.js +2 -2
- package/dist/src/framework/reference.js.map +1 -1
- package/dist/src/framework/sample.js +8 -8
- package/dist/src/framework/sample.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +103 -92
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +1 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +140 -140
- package/dist/src/lib.js.map +1 -1
- package/dist/src/metaTree.d.ts +1 -1
- package/dist/src/metaTree.d.ts.map +1 -1
- package/dist/src/modular/buildClassicalClient.d.ts +1 -1
- package/dist/src/modular/buildClassicalClient.d.ts.map +1 -1
- package/dist/src/modular/buildClassicalClient.js +60 -74
- package/dist/src/modular/buildClassicalClient.js.map +1 -1
- package/dist/src/modular/buildClassicalOperationGroups.d.ts +2 -2
- package/dist/src/modular/buildClassicalOperationGroups.d.ts.map +1 -1
- package/dist/src/modular/buildClassicalOperationGroups.js +8 -10
- package/dist/src/modular/buildClassicalOperationGroups.js.map +1 -1
- package/dist/src/modular/buildClientContext.d.ts +2 -2
- package/dist/src/modular/buildClientContext.d.ts.map +1 -1
- package/dist/src/modular/buildClientContext.js +31 -38
- package/dist/src/modular/buildClientContext.js.map +1 -1
- package/dist/src/modular/buildModularOptions.d.ts +1 -1
- package/dist/src/modular/buildModularOptions.d.ts.map +1 -1
- package/dist/src/modular/buildModularOptions.js +5 -6
- package/dist/src/modular/buildModularOptions.js.map +1 -1
- package/dist/src/modular/buildOperations.d.ts +3 -3
- package/dist/src/modular/buildOperations.d.ts.map +1 -1
- package/dist/src/modular/buildOperations.js +23 -25
- package/dist/src/modular/buildOperations.js.map +1 -1
- package/dist/src/modular/buildProjectFiles.d.ts +1 -1
- package/dist/src/modular/buildProjectFiles.d.ts.map +1 -1
- package/dist/src/modular/buildProjectFiles.js +8 -11
- package/dist/src/modular/buildProjectFiles.js.map +1 -1
- package/dist/src/modular/buildRestorePoller.d.ts +1 -1
- package/dist/src/modular/buildRestorePoller.d.ts.map +1 -1
- package/dist/src/modular/buildRestorePoller.js +12 -13
- package/dist/src/modular/buildRestorePoller.js.map +1 -1
- package/dist/src/modular/buildRootIndex.d.ts +2 -2
- package/dist/src/modular/buildRootIndex.d.ts.map +1 -1
- package/dist/src/modular/buildRootIndex.js +36 -50
- package/dist/src/modular/buildRootIndex.js.map +1 -1
- package/dist/src/modular/buildSubpathIndex.d.ts.map +1 -1
- package/dist/src/modular/buildSubpathIndex.js +9 -18
- package/dist/src/modular/buildSubpathIndex.js.map +1 -1
- package/dist/src/modular/emitLoggerFile.d.ts.map +1 -1
- package/dist/src/modular/emitLoggerFile.js +4 -4
- package/dist/src/modular/emitLoggerFile.js.map +1 -1
- package/dist/src/modular/emitModels.d.ts +1 -1
- package/dist/src/modular/emitModels.d.ts.map +1 -1
- package/dist/src/modular/emitModels.js +81 -113
- package/dist/src/modular/emitModels.js.map +1 -1
- package/dist/src/modular/emitModelsOptions.d.ts +1 -1
- package/dist/src/modular/emitModelsOptions.d.ts.map +1 -1
- package/dist/src/modular/emitModelsOptions.js +7 -8
- package/dist/src/modular/emitModelsOptions.js.map +1 -1
- package/dist/src/modular/emitSamples.d.ts.map +1 -1
- package/dist/src/modular/emitSamples.js +69 -77
- package/dist/src/modular/emitSamples.js.map +1 -1
- package/dist/src/modular/emitTests.d.ts.map +1 -1
- package/dist/src/modular/emitTests.js +13 -18
- package/dist/src/modular/emitTests.js.map +1 -1
- package/dist/src/modular/external-dependencies.js +54 -54
- package/dist/src/modular/helpers/classicalOperationHelpers.d.ts +1 -1
- package/dist/src/modular/helpers/classicalOperationHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/classicalOperationHelpers.js +59 -68
- package/dist/src/modular/helpers/classicalOperationHelpers.js.map +1 -1
- package/dist/src/modular/helpers/clientHelpers.d.ts +2 -2
- package/dist/src/modular/helpers/clientHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/clientHelpers.js +31 -54
- package/dist/src/modular/helpers/clientHelpers.js.map +1 -1
- package/dist/src/modular/helpers/clientOptionHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/clientOptionHelpers.js +1 -1
- package/dist/src/modular/helpers/clientOptionHelpers.js.map +1 -1
- package/dist/src/modular/helpers/exampleValueHelpers.d.ts +2 -2
- package/dist/src/modular/helpers/exampleValueHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/exampleValueHelpers.js +72 -84
- package/dist/src/modular/helpers/exampleValueHelpers.js.map +1 -1
- package/dist/src/modular/helpers/namingHelpers.d.ts +1 -1
- package/dist/src/modular/helpers/namingHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/namingHelpers.js +7 -10
- package/dist/src/modular/helpers/namingHelpers.js.map +1 -1
- package/dist/src/modular/helpers/operationHelpers.d.ts +2 -2
- package/dist/src/modular/helpers/operationHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/operationHelpers.js +204 -288
- package/dist/src/modular/helpers/operationHelpers.js.map +1 -1
- package/dist/src/modular/helpers/typeHelpers.d.ts +1 -1
- package/dist/src/modular/helpers/typeHelpers.d.ts.map +1 -1
- package/dist/src/modular/helpers/typeHelpers.js +4 -6
- package/dist/src/modular/helpers/typeHelpers.js.map +1 -1
- package/dist/src/modular/serialization/buildDeserializerFunction.d.ts +1 -1
- package/dist/src/modular/serialization/buildDeserializerFunction.d.ts.map +1 -1
- package/dist/src/modular/serialization/buildDeserializerFunction.js +58 -67
- package/dist/src/modular/serialization/buildDeserializerFunction.js.map +1 -1
- package/dist/src/modular/serialization/buildSerializerFunction.d.ts +1 -1
- package/dist/src/modular/serialization/buildSerializerFunction.d.ts.map +1 -1
- package/dist/src/modular/serialization/buildSerializerFunction.js +65 -75
- package/dist/src/modular/serialization/buildSerializerFunction.js.map +1 -1
- package/dist/src/modular/serialization/buildXmlSerializerFunction.d.ts +1 -1
- package/dist/src/modular/serialization/buildXmlSerializerFunction.d.ts.map +1 -1
- package/dist/src/modular/serialization/buildXmlSerializerFunction.js +73 -90
- package/dist/src/modular/serialization/buildXmlSerializerFunction.js.map +1 -1
- package/dist/src/modular/serialization/serializeUtils.d.ts.map +1 -1
- package/dist/src/modular/serialization/serializeUtils.js +25 -33
- package/dist/src/modular/serialization/serializeUtils.js.map +1 -1
- package/dist/src/modular/static-helpers-metadata.js +60 -60
- package/dist/src/modular/type-expressions/get-credential-expression.js +1 -1
- package/dist/src/modular/type-expressions/get-credential-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-enum-expression.d.ts +1 -1
- package/dist/src/modular/type-expressions/get-enum-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-enum-expression.js +1 -2
- package/dist/src/modular/type-expressions/get-enum-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-model-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-model-expression.js +10 -13
- package/dist/src/modular/type-expressions/get-model-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-nullable-expression.d.ts +1 -1
- package/dist/src/modular/type-expressions/get-nullable-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-nullable-expression.js +2 -3
- package/dist/src/modular/type-expressions/get-nullable-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-type-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-type-expression.js +5 -11
- package/dist/src/modular/type-expressions/get-type-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-union-expression.d.ts +1 -1
- package/dist/src/modular/type-expressions/get-union-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-union-expression.js.map +1 -1
- package/dist/src/rlc-common/buildClient.d.ts +1 -1
- package/dist/src/rlc-common/buildClient.d.ts.map +1 -1
- package/dist/src/rlc-common/buildClient.js +67 -89
- package/dist/src/rlc-common/buildClient.js.map +1 -1
- package/dist/src/rlc-common/buildClientDefinitions.d.ts.map +1 -1
- package/dist/src/rlc-common/buildClientDefinitions.js +28 -45
- package/dist/src/rlc-common/buildClientDefinitions.js.map +1 -1
- package/dist/src/rlc-common/buildIndexFile.d.ts.map +1 -1
- package/dist/src/rlc-common/buildIndexFile.js +59 -60
- package/dist/src/rlc-common/buildIndexFile.js.map +1 -1
- package/dist/src/rlc-common/buildIsUnexpectedHelper.d.ts.map +1 -1
- package/dist/src/rlc-common/buildIsUnexpectedHelper.js +37 -38
- package/dist/src/rlc-common/buildIsUnexpectedHelper.js.map +1 -1
- package/dist/src/rlc-common/buildLogger.d.ts.map +1 -1
- package/dist/src/rlc-common/buildLogger.js +4 -5
- package/dist/src/rlc-common/buildLogger.js.map +1 -1
- package/dist/src/rlc-common/buildMethodShortcuts.d.ts.map +1 -1
- package/dist/src/rlc-common/buildMethodShortcuts.js +4 -4
- package/dist/src/rlc-common/buildMethodShortcuts.js.map +1 -1
- package/dist/src/rlc-common/buildObjectTypes.d.ts.map +1 -1
- package/dist/src/rlc-common/buildObjectTypes.js +57 -96
- package/dist/src/rlc-common/buildObjectTypes.js.map +1 -1
- package/dist/src/rlc-common/buildPaginateHelper.d.ts.map +1 -1
- package/dist/src/rlc-common/buildPaginateHelper.js +2 -2
- package/dist/src/rlc-common/buildPaginateHelper.js.map +1 -1
- package/dist/src/rlc-common/buildParameterTypes.d.ts.map +1 -1
- package/dist/src/rlc-common/buildParameterTypes.js +71 -61
- package/dist/src/rlc-common/buildParameterTypes.js.map +1 -1
- package/dist/src/rlc-common/buildPollingHelper.d.ts.map +1 -1
- package/dist/src/rlc-common/buildPollingHelper.js +9 -10
- package/dist/src/rlc-common/buildPollingHelper.js.map +1 -1
- package/dist/src/rlc-common/buildResponseTypes.d.ts.map +1 -1
- package/dist/src/rlc-common/buildResponseTypes.js +23 -27
- package/dist/src/rlc-common/buildResponseTypes.js.map +1 -1
- package/dist/src/rlc-common/buildSamples.d.ts +1 -1
- package/dist/src/rlc-common/buildSamples.d.ts.map +1 -1
- package/dist/src/rlc-common/buildSamples.js +2 -2
- package/dist/src/rlc-common/buildSchemaType.d.ts.map +1 -1
- package/dist/src/rlc-common/buildSchemaType.js +31 -13
- package/dist/src/rlc-common/buildSchemaType.js.map +1 -1
- package/dist/src/rlc-common/buildSerializeHelper.d.ts.map +1 -1
- package/dist/src/rlc-common/buildSerializeHelper.js +4 -4
- package/dist/src/rlc-common/buildSerializeHelper.js.map +1 -1
- package/dist/src/rlc-common/buildTopLevelIndexFile.d.ts.map +1 -1
- package/dist/src/rlc-common/buildTopLevelIndexFile.js +9 -13
- package/dist/src/rlc-common/buildTopLevelIndexFile.js.map +1 -1
- package/dist/src/rlc-common/helpers/apiVersionUtil.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/apiVersionUtil.js +6 -8
- package/dist/src/rlc-common/helpers/apiVersionUtil.js.map +1 -1
- package/dist/src/rlc-common/helpers/importsUtil.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/importsUtil.js +32 -37
- package/dist/src/rlc-common/helpers/importsUtil.js.map +1 -1
- package/dist/src/rlc-common/helpers/nameConstructors.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/nameConstructors.js +2 -4
- package/dist/src/rlc-common/helpers/nameConstructors.js.map +1 -1
- package/dist/src/rlc-common/helpers/nameUtils.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/nameUtils.js +17 -23
- package/dist/src/rlc-common/helpers/nameUtils.js.map +1 -1
- package/dist/src/rlc-common/helpers/operationHelpers.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/operationHelpers.js +16 -31
- package/dist/src/rlc-common/helpers/operationHelpers.js.map +1 -1
- package/dist/src/rlc-common/helpers/packageUtil.js +3 -6
- package/dist/src/rlc-common/helpers/packageUtil.js.map +1 -1
- package/dist/src/rlc-common/helpers/pathUtils.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/pathUtils.js +1 -3
- package/dist/src/rlc-common/helpers/pathUtils.js.map +1 -1
- package/dist/src/rlc-common/helpers/schemaHelpers.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/schemaHelpers.js +3 -7
- package/dist/src/rlc-common/helpers/schemaHelpers.js.map +1 -1
- package/dist/src/rlc-common/helpers/shortcutMethods.d.ts +1 -1
- package/dist/src/rlc-common/helpers/shortcutMethods.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/shortcutMethods.js +2 -2
- package/dist/src/rlc-common/helpers/shortcutMethods.js.map +1 -1
- package/dist/src/rlc-common/helpers/typeUtil.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/typeUtil.js +4 -9
- package/dist/src/rlc-common/helpers/typeUtil.js.map +1 -1
- package/dist/src/rlc-common/helpers/valueGenerationUtil.js +7 -11
- package/dist/src/rlc-common/helpers/valueGenerationUtil.js.map +1 -1
- package/dist/src/rlc-common/index.d.ts +28 -28
- package/dist/src/rlc-common/index.d.ts.map +1 -1
- package/dist/src/rlc-common/index.js +28 -28
- package/dist/src/rlc-common/index.js.map +1 -1
- package/dist/src/rlc-common/interfaces.d.ts.map +1 -1
- package/dist/src/rlc-common/interfaces.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js +14 -15
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildChangelogFile.js +2 -3
- package/dist/src/rlc-common/metadata/buildChangelogFile.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildESLintConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildESLintConfig.js +5 -8
- package/dist/src/rlc-common/metadata/buildESLintConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildLicenseFile.js +1 -1
- package/dist/src/rlc-common/metadata/buildPackageFile.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildPackageFile.js +33 -37
- package/dist/src/rlc-common/metadata/buildPackageFile.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildReadmeFile.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildReadmeFile.js +31 -39
- package/dist/src/rlc-common/metadata/buildReadmeFile.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildRollupConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildRollupConfig.js +4 -6
- package/dist/src/rlc-common/metadata/buildRollupConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.js +3 -5
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildTestConfig.js +11 -12
- package/dist/src/rlc-common/metadata/buildTestConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildTsConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildTsConfig.js +28 -28
- package/dist/src/rlc-common/metadata/buildTsConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildVitestConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildVitestConfig.js +3 -5
- package/dist/src/rlc-common/metadata/buildVitestConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildWarpConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildWarpConfig.js +4 -5
- package/dist/src/rlc-common/metadata/buildWarpConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.d.ts +1 -1
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.js +14 -14
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.js.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.js +24 -29
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.js.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.js +15 -16
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.js.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.js +8 -8
- package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.js.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.js +28 -31
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.js.map +1 -1
- package/dist/src/rlc-common/metadata/utils.js +1 -2
- package/dist/src/rlc-common/metadata/utils.js.map +1 -1
- package/dist/src/rlc-common/test/buildKarmaConfig.js +1 -1
- package/dist/src/rlc-common/test/buildRecordedClient.js +4 -5
- package/dist/src/rlc-common/test/buildRecordedClient.js.map +1 -1
- package/dist/src/rlc-common/test/buildSampleTest.d.ts.map +1 -1
- package/dist/src/rlc-common/test/buildSampleTest.js +3 -4
- package/dist/src/rlc-common/test/buildSampleTest.js.map +1 -1
- package/dist/src/rlc-common/test/buildSnippets.d.ts.map +1 -1
- package/dist/src/rlc-common/test/buildSnippets.js +7 -10
- package/dist/src/rlc-common/test/buildSnippets.js.map +1 -1
- package/dist/src/rlc-common/transformSampleGroups.d.ts.map +1 -1
- package/dist/src/rlc-common/transformSampleGroups.js +41 -45
- package/dist/src/rlc-common/transformSampleGroups.js.map +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +1 -1
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/transform/transform.d.ts +1 -1
- package/dist/src/transform/transform.d.ts.map +1 -1
- package/dist/src/transform/transform.js +28 -27
- package/dist/src/transform/transform.js.map +1 -1
- package/dist/src/transform/transformApiVersionInfo.d.ts +1 -1
- package/dist/src/transform/transformApiVersionInfo.d.ts.map +1 -1
- package/dist/src/transform/transformApiVersionInfo.js +12 -14
- package/dist/src/transform/transformApiVersionInfo.js.map +1 -1
- package/dist/src/transform/transformHelperFunctionDetails.d.ts +1 -1
- package/dist/src/transform/transformHelperFunctionDetails.d.ts.map +1 -1
- package/dist/src/transform/transformHelperFunctionDetails.js +11 -14
- package/dist/src/transform/transformHelperFunctionDetails.js.map +1 -1
- package/dist/src/transform/transformParameters.d.ts +2 -2
- package/dist/src/transform/transformParameters.d.ts.map +1 -1
- package/dist/src/transform/transformParameters.js +32 -45
- package/dist/src/transform/transformParameters.js.map +1 -1
- package/dist/src/transform/transformPaths.d.ts +1 -1
- package/dist/src/transform/transformPaths.d.ts.map +1 -1
- package/dist/src/transform/transformPaths.js +19 -23
- package/dist/src/transform/transformPaths.js.map +1 -1
- package/dist/src/transform/transformResponses.d.ts +1 -1
- package/dist/src/transform/transformResponses.d.ts.map +1 -1
- package/dist/src/transform/transformResponses.js +21 -25
- 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 +21 -32
- package/dist/src/transform/transformSchemas.js.map +1 -1
- package/dist/src/transform/transformTelemetryInfo.d.ts +1 -1
- package/dist/src/transform/transformTelemetryInfo.d.ts.map +1 -1
- package/dist/src/transform/transformTelemetryInfo.js +3 -3
- package/dist/src/transform/transformTelemetryInfo.js.map +1 -1
- package/dist/src/transform/transfromRLCOptions.d.ts +1 -1
- package/dist/src/transform/transfromRLCOptions.d.ts.map +1 -1
- package/dist/src/transform/transfromRLCOptions.js +28 -39
- package/dist/src/transform/transfromRLCOptions.js.map +1 -1
- package/dist/src/utils/clientUtils.d.ts +1 -1
- package/dist/src/utils/clientUtils.d.ts.map +1 -1
- package/dist/src/utils/clientUtils.js +15 -23
- package/dist/src/utils/clientUtils.js.map +1 -1
- package/dist/src/utils/credentialUtils.d.ts +1 -1
- package/dist/src/utils/credentialUtils.d.ts.map +1 -1
- package/dist/src/utils/credentialUtils.js +4 -5
- package/dist/src/utils/credentialUtils.js.map +1 -1
- package/dist/src/utils/crossLanguageDef.d.ts.map +1 -1
- package/dist/src/utils/crossLanguageDef.js +11 -15
- package/dist/src/utils/crossLanguageDef.js.map +1 -1
- package/dist/src/utils/emitUtil.d.ts +1 -1
- package/dist/src/utils/emitUtil.d.ts.map +1 -1
- package/dist/src/utils/emitUtil.js +5 -7
- package/dist/src/utils/emitUtil.js.map +1 -1
- package/dist/src/utils/fileSystemUtils.d.ts +2 -0
- package/dist/src/utils/fileSystemUtils.d.ts.map +1 -1
- package/dist/src/utils/fileSystemUtils.js +26 -7
- package/dist/src/utils/fileSystemUtils.js.map +1 -1
- package/dist/src/utils/importHelper.d.ts.map +1 -1
- package/dist/src/utils/importHelper.js +3 -6
- package/dist/src/utils/importHelper.js.map +1 -1
- package/dist/src/utils/interfaces.d.ts +1 -1
- package/dist/src/utils/interfaces.d.ts.map +1 -1
- package/dist/src/utils/mediaTypes.d.ts.map +1 -1
- package/dist/src/utils/mediaTypes.js +7 -19
- package/dist/src/utils/mediaTypes.js.map +1 -1
- package/dist/src/utils/modelUtils.d.ts +5 -5
- package/dist/src/utils/modelUtils.d.ts.map +1 -1
- package/dist/src/utils/modelUtils.js +168 -257
- package/dist/src/utils/modelUtils.js.map +1 -1
- package/dist/src/utils/namespaceUtils.d.ts.map +1 -1
- package/dist/src/utils/namespaceUtils.js +6 -7
- package/dist/src/utils/namespaceUtils.js.map +1 -1
- package/dist/src/utils/operationUtil.d.ts +1 -1
- package/dist/src/utils/operationUtil.d.ts.map +1 -1
- package/dist/src/utils/operationUtil.js +60 -81
- package/dist/src/utils/operationUtil.js.map +1 -1
- package/dist/src/utils/parameterUtils.d.ts +1 -1
- package/dist/src/utils/parameterUtils.d.ts.map +1 -1
- package/dist/src/utils/parameterUtils.js +26 -33
- package/dist/src/utils/parameterUtils.js.map +1 -1
- package/dist/src/utils/resolve-project-root.js +2 -2
- package/dist/src/utils/resolve-project-root.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -45
- package/src/contextManager.ts +6 -9
- package/src/framework/declaration.ts +18 -28
- package/src/framework/dependency.ts +1 -2
- package/src/framework/hooks/binder.ts +47 -120
- package/src/framework/hooks/sdkTypes.ts +27 -54
- package/src/framework/hooks/useDependencies.ts +2 -4
- package/src/framework/load-static-helpers.ts +28 -51
- package/src/framework/reference.ts +2 -5
- package/src/framework/sample.ts +9 -9
- package/src/index.ts +145 -185
- package/src/lib.ts +143 -158
- package/src/metaTree.ts +1 -1
- package/src/modular/buildClassicalClient.ts +83 -160
- package/src/modular/buildClassicalOperationGroups.ts +14 -39
- package/src/modular/buildClientContext.ts +54 -83
- package/src/modular/buildModularOptions.ts +4 -5
- package/src/modular/buildOperations.ts +46 -73
- package/src/modular/buildProjectFiles.ts +18 -47
- package/src/modular/buildRestorePoller.ts +27 -46
- package/src/modular/buildRootIndex.ts +86 -160
- package/src/modular/buildSubpathIndex.ts +35 -58
- package/src/modular/emitLoggerFile.ts +4 -9
- package/src/modular/emitModels.ts +136 -266
- package/src/modular/emitModelsOptions.ts +10 -16
- package/src/modular/emitSamples.ts +92 -180
- package/src/modular/emitTests.ts +28 -61
- package/src/modular/external-dependencies.ts +54 -54
- package/src/modular/helpers/classicalOperationHelpers.ts +73 -126
- package/src/modular/helpers/clientHelpers.ts +41 -88
- package/src/modular/helpers/clientOptionHelpers.ts +4 -11
- package/src/modular/helpers/exampleValueHelpers.ts +99 -215
- package/src/modular/helpers/namingHelpers.ts +12 -28
- package/src/modular/helpers/operationHelpers.ts +430 -757
- package/src/modular/helpers/typeHelpers.ts +11 -22
- package/src/modular/serialization/buildDeserializerFunction.ts +88 -122
- package/src/modular/serialization/buildSerializerFunction.ts +91 -129
- package/src/modular/serialization/buildXmlSerializerFunction.ts +104 -183
- package/src/modular/serialization/serializeUtils.ts +12 -22
- package/src/modular/static/rollup.test.config.js +11 -14
- package/src/modular/static/scripts/renameOutput.mjs +2 -2
- package/src/modular/static-helpers-metadata.ts +60 -60
- package/src/modular/type-expressions/get-credential-expression.ts +1 -1
- package/src/modular/type-expressions/get-enum-expression.ts +5 -10
- package/src/modular/type-expressions/get-model-expression.ts +13 -17
- package/src/modular/type-expressions/get-nullable-expression.ts +4 -5
- package/src/modular/type-expressions/get-type-expression.ts +8 -12
- package/src/modular/type-expressions/get-union-expression.ts +4 -4
- package/src/modular/type-expressions/utils.ts +1 -1
- package/src/rlc-common/buildClient.ts +70 -141
- package/src/rlc-common/buildClientDefinitions.ts +44 -87
- package/src/rlc-common/buildIndexFile.ts +78 -78
- package/src/rlc-common/buildIsUnexpectedHelper.ts +34 -41
- package/src/rlc-common/buildLogger.ts +7 -7
- package/src/rlc-common/buildMethodShortcuts.ts +9 -21
- package/src/rlc-common/buildObjectTypes.ts +79 -156
- package/src/rlc-common/buildPaginateHelper.ts +9 -12
- package/src/rlc-common/buildParameterTypes.ts +116 -137
- package/src/rlc-common/buildPollingHelper.ts +7 -7
- package/src/rlc-common/buildResponseTypes.ts +34 -57
- package/src/rlc-common/buildSamples.ts +3 -3
- package/src/rlc-common/buildSchemaType.ts +37 -29
- package/src/rlc-common/buildSerializeHelper.ts +5 -5
- package/src/rlc-common/buildTopLevelIndexFile.ts +12 -19
- package/src/rlc-common/helpers/apiVersionUtil.ts +5 -10
- package/src/rlc-common/helpers/importsUtil.ts +27 -30
- package/src/rlc-common/helpers/nameConstructors.ts +16 -50
- package/src/rlc-common/helpers/nameUtils.ts +19 -42
- package/src/rlc-common/helpers/operationHelpers.ts +14 -31
- package/src/rlc-common/helpers/pathUtils.ts +2 -7
- package/src/rlc-common/helpers/schemaHelpers.ts +4 -15
- package/src/rlc-common/helpers/shortcutMethods.ts +6 -15
- package/src/rlc-common/helpers/typeUtil.ts +4 -11
- package/src/rlc-common/helpers/valueGenerationUtil.ts +16 -39
- package/src/rlc-common/index.ts +28 -28
- package/src/rlc-common/interfaces.ts +3 -11
- package/src/rlc-common/metadata/buildApiExtractorConfig.ts +17 -24
- package/src/rlc-common/metadata/buildChangelogFile.ts +1 -1
- package/src/rlc-common/metadata/buildESLintConfig.ts +3 -5
- package/src/rlc-common/metadata/buildLicenseFile.ts +1 -1
- package/src/rlc-common/metadata/buildPackageFile.ts +27 -35
- package/src/rlc-common/metadata/buildReadmeFile.ts +16 -29
- package/src/rlc-common/metadata/buildRollupConfig.ts +5 -8
- package/src/rlc-common/metadata/buildSampleEnvFile.ts +2 -3
- package/src/rlc-common/metadata/buildTestConfig.ts +10 -10
- package/src/rlc-common/metadata/buildTsConfig.ts +32 -35
- package/src/rlc-common/metadata/buildVitestConfig.ts +4 -10
- package/src/rlc-common/metadata/buildWarpConfig.ts +3 -6
- package/src/rlc-common/metadata/packageJson/azurePackageCommon.ts +16 -25
- package/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.ts +29 -50
- package/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.ts +20 -31
- package/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.ts +11 -13
- package/src/rlc-common/metadata/packageJson/packageCommon.ts +32 -52
- package/src/rlc-common/test/buildKarmaConfig.ts +1 -1
- package/src/rlc-common/test/buildRecordedClient.ts +3 -3
- package/src/rlc-common/test/buildSampleTest.ts +3 -3
- package/src/rlc-common/test/buildSnippets.ts +6 -12
- package/src/rlc-common/transformSampleGroups.ts +54 -105
- package/src/testing/index.ts +2 -5
- package/src/transform/transform.ts +22 -34
- package/src/transform/transformApiVersionInfo.ts +17 -30
- package/src/transform/transformHelperFunctionDetails.ts +14 -26
- package/src/transform/transformParameters.ts +55 -105
- package/src/transform/transformPaths.ts +26 -43
- package/src/transform/transformResponses.ts +26 -33
- package/src/transform/transformSchemas.ts +15 -33
- package/src/transform/transformTelemetryInfo.ts +8 -14
- package/src/transform/transfromRLCOptions.ts +53 -116
- package/src/utils/clientUtils.ts +22 -41
- package/src/utils/credentialUtils.ts +8 -19
- package/src/utils/crossLanguageDef.ts +15 -34
- package/src/utils/emitUtil.ts +11 -17
- package/src/utils/fileSystemUtils.ts +30 -8
- package/src/utils/importHelper.ts +5 -10
- package/src/utils/interfaces.ts +1 -1
- package/src/utils/mediaTypes.ts +13 -34
- package/src/utils/modelUtils.ts +175 -384
- package/src/utils/namespaceUtils.ts +8 -24
- package/src/utils/operationUtil.ts +98 -190
- package/src/utils/parameterUtils.ts +31 -54
- package/src/utils/resolve-project-root.ts +3 -3
- package/static/static-helpers/cloudSettingHelpers.ts +4 -6
- package/static/static-helpers/multipartHelpers.ts +3 -3
- package/static/static-helpers/pagingHelpers.ts +28 -63
- package/static/static-helpers/pollingHelpers.ts +16 -29
- package/static/static-helpers/serialization/build-multi-collection.ts +1 -4
- package/static/static-helpers/serialization/check-prop-undefined.ts +1 -4
- package/static/static-helpers/serialization/get-binary-response-browser.mts +3 -1
- package/static/static-helpers/serialization/get-binary-response.ts +2 -2
- package/static/static-helpers/serialization/get-binary-stream-response-browser.mts +1 -3
- package/static/static-helpers/serialization/get-binary-stream-response.ts +2 -4
- package/static/static-helpers/serialization/serialize-record.ts +1 -1
- package/static/static-helpers/serialization/serializers.ts +4 -7
- package/static/static-helpers/serialization/xml-helpers.ts +42 -90
- package/static/static-helpers/simplePollerHelpers.ts +10 -19
- package/static/static-helpers/storageCompatResponse.ts +10 -27
- package/static/static-helpers/urlTemplate.ts +4 -7
- package/static/test-helpers/recordedClient.ts +5 -10
package/src/lib.ts
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
PackageDetails,
|
|
6
|
-
DependencyInfo,
|
|
7
|
-
ServiceInfo,
|
|
8
|
-
PackageFlavor
|
|
9
|
-
} from "./rlc-common/index.js";
|
|
10
|
-
import {
|
|
11
|
-
createTypeSpecLibrary,
|
|
12
|
-
JSONSchemaType,
|
|
13
|
-
paramMessage
|
|
14
|
-
} from "@typespec/compiler";
|
|
4
|
+
import { createTypeSpecLibrary, JSONSchemaType, paramMessage } from "@typespec/compiler";
|
|
15
5
|
import { Options } from "prettier";
|
|
6
|
+
import { DependencyInfo, PackageDetails, PackageFlavor, ServiceInfo } from "./rlc-common/index.js";
|
|
16
7
|
|
|
17
8
|
export interface EmitterOptions {
|
|
18
9
|
/**
|
|
@@ -115,25 +106,25 @@ export const RLCOptionsSchema: JSONSchemaType<EmitterOptions> = {
|
|
|
115
106
|
type: "boolean",
|
|
116
107
|
nullable: true,
|
|
117
108
|
description:
|
|
118
|
-
"This option is used to indicate whether to include response headers in the generated response type. When set to true, the generated response type will include response headers as properties."
|
|
109
|
+
"This option is used to indicate whether to include response headers in the generated response type. When set to true, the generated response type will include response headers as properties.",
|
|
119
110
|
},
|
|
120
111
|
"include-shortcuts": {
|
|
121
112
|
type: "boolean",
|
|
122
113
|
nullable: true,
|
|
123
|
-
description: "Deprecated option for RLC legacy generation."
|
|
114
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
124
115
|
},
|
|
125
116
|
"multi-client": {
|
|
126
117
|
type: "boolean",
|
|
127
118
|
nullable: true,
|
|
128
|
-
description: "Deprecated option for RLC legacy generation."
|
|
119
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
129
120
|
},
|
|
130
121
|
batch: {
|
|
131
122
|
type: "array",
|
|
132
123
|
nullable: true,
|
|
133
124
|
items: {
|
|
134
|
-
type: "string"
|
|
125
|
+
type: "string",
|
|
135
126
|
},
|
|
136
|
-
description: "Deprecated option for RLC legacy generation."
|
|
127
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
137
128
|
},
|
|
138
129
|
"package-details": {
|
|
139
130
|
type: "object",
|
|
@@ -144,12 +135,12 @@ export const RLCOptionsSchema: JSONSchemaType<EmitterOptions> = {
|
|
|
144
135
|
nameWithoutScope: { type: "string", nullable: true },
|
|
145
136
|
description: { type: "string", nullable: true },
|
|
146
137
|
version: { type: "string", nullable: true },
|
|
147
|
-
isVersionUserProvided: { type: "boolean", nullable: true }
|
|
138
|
+
isVersionUserProvided: { type: "boolean", nullable: true },
|
|
148
139
|
},
|
|
149
140
|
required: ["name"],
|
|
150
141
|
nullable: true,
|
|
151
142
|
description:
|
|
152
|
-
"This is to indicate the package information such as package name, package description etc."
|
|
143
|
+
"This is to indicate the package information such as package name, package description etc.",
|
|
153
144
|
},
|
|
154
145
|
"add-credentials": {
|
|
155
146
|
type: "boolean",
|
|
@@ -165,39 +156,39 @@ export const RLCOptionsSchema: JSONSchemaType<EmitterOptions> = {
|
|
|
165
156
|
Please notice defining in TypeSpec is recommended and also has higher priority than second one.
|
|
166
157
|
|
|
167
158
|
To enable credential in \`tspconfig.yaml\` and we need to provide more details to let codegen know types.
|
|
168
|
-
|
|
159
|
+
`,
|
|
169
160
|
},
|
|
170
161
|
"credential-scopes": {
|
|
171
162
|
type: "array",
|
|
172
163
|
nullable: true,
|
|
173
164
|
items: { type: "string" },
|
|
174
165
|
description:
|
|
175
|
-
"If we enable the option `add-credentials` and specify `credential-scopes` the details we would enable the AADToken authentication."
|
|
166
|
+
"If we enable the option `add-credentials` and specify `credential-scopes` the details we would enable the AADToken authentication.",
|
|
176
167
|
},
|
|
177
168
|
"credential-key-header-name": {
|
|
178
169
|
type: "string",
|
|
179
170
|
nullable: true,
|
|
180
171
|
description:
|
|
181
|
-
"If we enable the option `add-credentials` and specify `credential-key-header-name` the details we would enable the AzureKey authentication."
|
|
172
|
+
"If we enable the option `add-credentials` and specify `credential-key-header-name` the details we would enable the AzureKey authentication.",
|
|
182
173
|
},
|
|
183
174
|
"custom-http-auth-header-name": {
|
|
184
175
|
type: "string",
|
|
185
176
|
nullable: true,
|
|
186
177
|
description:
|
|
187
|
-
"This option is used for special Key Auth, when the key has a shared prefix and this header is to set the header name"
|
|
178
|
+
"This option is used for special Key Auth, when the key has a shared prefix and this header is to set the header name",
|
|
188
179
|
},
|
|
189
180
|
"custom-http-auth-shared-key-prefix": {
|
|
190
181
|
type: "string",
|
|
191
182
|
nullable: true,
|
|
192
183
|
description:
|
|
193
|
-
"This option is used for special Key Auth, when the key has a shared prefix and this header is to pass the rest of the header key."
|
|
184
|
+
"This option is used for special Key Auth, when the key has a shared prefix and this header is to pass the rest of the header key.",
|
|
194
185
|
},
|
|
195
186
|
"generate-metadata": {
|
|
196
187
|
type: "boolean",
|
|
197
188
|
nullable: true,
|
|
198
189
|
description: `
|
|
199
190
|
Whether to generate metadata files which includes package.json, README.md and tsconfig.json etc. Defaults to \`undefined\`. If there's not a package.json under package-dir, defaults to \`true\`. but if you'd like to disable this feature you could set it as \`false\`.
|
|
200
|
-
|
|
191
|
+
`,
|
|
201
192
|
},
|
|
202
193
|
"generate-test": {
|
|
203
194
|
type: "boolean",
|
|
@@ -208,164 +199,163 @@ export const RLCOptionsSchema: JSONSchemaType<EmitterOptions> = {
|
|
|
208
199
|
- If azure-sdk-for-js is \`false\`. Defaults to \`false\`.
|
|
209
200
|
- If azure-sdk-for-js is \`true\` but there's a test folder under package-dir. Defaults to \`false\`.
|
|
210
201
|
- If azure-sdk-for-js is \`true\` but there's not a test folder under package-dir. Defaults to \`true\`.
|
|
211
|
-
|
|
202
|
+
`,
|
|
212
203
|
},
|
|
213
204
|
"generate-sample": {
|
|
214
205
|
type: "boolean",
|
|
215
206
|
nullable: true,
|
|
216
207
|
description:
|
|
217
|
-
"Whether to generate sample files, for basic samples of your generated sdks. Defaults to `undefined`. Management packages' default to `true`."
|
|
208
|
+
"Whether to generate sample files, for basic samples of your generated sdks. Defaults to `undefined`. Management packages' default to `true`.",
|
|
218
209
|
},
|
|
219
210
|
"azure-sdk-for-js": {
|
|
220
211
|
type: "boolean",
|
|
221
212
|
nullable: true,
|
|
222
213
|
description:
|
|
223
|
-
"This is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool. Defaults to `undefined`. Services with Flavor equal to 'Azure' default to 'true'. "
|
|
214
|
+
"This is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool. Defaults to `undefined`. Services with Flavor equal to 'Azure' default to 'true'. ",
|
|
224
215
|
},
|
|
225
216
|
"azure-output-directory": {
|
|
226
217
|
type: "string",
|
|
227
218
|
nullable: true,
|
|
228
|
-
description: "Deprecated option for RLC legacy generation"
|
|
219
|
+
description: "Deprecated option for RLC legacy generation",
|
|
229
220
|
},
|
|
230
221
|
"is-typespec-test": {
|
|
231
222
|
type: "boolean",
|
|
232
223
|
nullable: true,
|
|
233
|
-
description: "Internal option for test"
|
|
224
|
+
description: "Internal option for test",
|
|
234
225
|
},
|
|
235
226
|
title: {
|
|
236
227
|
type: "string",
|
|
237
228
|
nullable: true,
|
|
238
|
-
description: "Deprecated option for RLC legacy generation."
|
|
229
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
239
230
|
},
|
|
240
231
|
"dependency-info": {
|
|
241
232
|
type: "object",
|
|
242
233
|
additionalProperties: true,
|
|
243
234
|
properties: {
|
|
244
235
|
link: { type: "string", nullable: false },
|
|
245
|
-
description: { type: "string", nullable: false }
|
|
236
|
+
description: { type: "string", nullable: false },
|
|
246
237
|
},
|
|
247
238
|
required: [],
|
|
248
239
|
nullable: true,
|
|
249
|
-
description: "Deprecated option for RLC legacy generation."
|
|
240
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
250
241
|
},
|
|
251
242
|
"product-doc-link": {
|
|
252
243
|
type: "string",
|
|
253
244
|
nullable: true,
|
|
254
|
-
description: "Deprecated option for RLC legacy generation."
|
|
245
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
255
246
|
},
|
|
256
247
|
"service-info": {
|
|
257
248
|
type: "object",
|
|
258
249
|
additionalProperties: true,
|
|
259
250
|
properties: {
|
|
260
251
|
title: { type: "string", nullable: true },
|
|
261
|
-
description: { type: "string", nullable: true }
|
|
252
|
+
description: { type: "string", nullable: true },
|
|
262
253
|
},
|
|
263
254
|
nullable: true,
|
|
264
|
-
description: "Deprecated option for RLC legacy generation."
|
|
255
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
265
256
|
},
|
|
266
257
|
"azure-arm": {
|
|
267
258
|
type: "boolean",
|
|
268
259
|
nullable: true,
|
|
269
|
-
description: "Whether the package is an arm package."
|
|
260
|
+
description: "Whether the package is an arm package.",
|
|
270
261
|
},
|
|
271
262
|
"source-from": {
|
|
272
263
|
type: "string",
|
|
273
264
|
nullable: true,
|
|
274
|
-
description:
|
|
275
|
-
"Internal option, the value is default for TypeSpec generation"
|
|
265
|
+
description: "Internal option, the value is default for TypeSpec generation",
|
|
276
266
|
},
|
|
277
267
|
"is-modular-library": {
|
|
278
268
|
type: "boolean",
|
|
279
269
|
nullable: true,
|
|
280
270
|
default: false,
|
|
281
271
|
description:
|
|
282
|
-
"Whether to generate a Modular library. Defaults to `false`. Arm packages default to `true`."
|
|
272
|
+
"Whether to generate a Modular library. Defaults to `false`. Arm packages default to `true`.",
|
|
283
273
|
},
|
|
284
274
|
"enable-operation-group": {
|
|
285
275
|
type: "boolean",
|
|
286
276
|
nullable: true,
|
|
287
277
|
description:
|
|
288
|
-
"An option to treat interface as operation group. This is not recommended unless specifically told so"
|
|
278
|
+
"An option to treat interface as operation group. This is not recommended unless specifically told so",
|
|
289
279
|
},
|
|
290
280
|
"enable-model-namespace": {
|
|
291
281
|
type: "boolean",
|
|
292
282
|
nullable: true,
|
|
293
283
|
description:
|
|
294
|
-
"Provides an option to add the model namespace to model names in case of conflicts across different namespaces. This approach is generally discouraged unless explicitly required."
|
|
284
|
+
"Provides an option to add the model namespace to model names in case of conflicts across different namespaces. This approach is generally discouraged unless explicitly required.",
|
|
295
285
|
},
|
|
296
286
|
"hierarchy-client": {
|
|
297
287
|
type: "boolean",
|
|
298
288
|
nullable: true,
|
|
299
289
|
description:
|
|
300
|
-
"An option to organize the client in a hierarchical way as defined by `@clientInitialization`. This is true by default."
|
|
290
|
+
"An option to organize the client in a hierarchical way as defined by `@clientInitialization`. This is true by default.",
|
|
301
291
|
},
|
|
302
292
|
branded: {
|
|
303
293
|
type: "boolean",
|
|
304
294
|
nullable: true,
|
|
305
|
-
description: "A section of flavor"
|
|
295
|
+
description: "A section of flavor",
|
|
306
296
|
},
|
|
307
297
|
flavor: {
|
|
308
298
|
type: "string",
|
|
309
299
|
nullable: true,
|
|
310
|
-
description: "The flavor of the SDK."
|
|
300
|
+
description: "The flavor of the SDK.",
|
|
311
301
|
},
|
|
312
302
|
"module-kind": {
|
|
313
303
|
type: "string",
|
|
314
304
|
nullable: true,
|
|
315
305
|
enum: ["esm"],
|
|
316
306
|
default: "esm",
|
|
317
|
-
description: "Internal option for test."
|
|
307
|
+
description: "Internal option for test.",
|
|
318
308
|
},
|
|
319
309
|
"compatibility-mode": {
|
|
320
310
|
type: "boolean",
|
|
321
311
|
nullable: true,
|
|
322
312
|
description:
|
|
323
|
-
"Whether to affect the generation of the additional property feature for the Modular client. Defaults to `false`."
|
|
313
|
+
"Whether to affect the generation of the additional property feature for the Modular client. Defaults to `false`.",
|
|
324
314
|
},
|
|
325
315
|
"compatibility-lro": {
|
|
326
316
|
type: "boolean",
|
|
327
317
|
nullable: true,
|
|
328
318
|
description:
|
|
329
|
-
"[deprecated] Whether to generate the legacy LRO interface. When `true`, we will generate legacy beginXXX and beginXXXAndWait LRO methods."
|
|
319
|
+
"[deprecated] Whether to generate the legacy LRO interface. When `true`, we will generate legacy beginXXX and beginXXXAndWait LRO methods.",
|
|
330
320
|
},
|
|
331
321
|
"experimental-extensible-enums": {
|
|
332
322
|
type: "boolean",
|
|
333
323
|
nullable: true,
|
|
334
|
-
description: "Whether to transform union type enums to extensible enums"
|
|
324
|
+
description: "Whether to transform union type enums to extensible enums",
|
|
335
325
|
},
|
|
336
326
|
"clear-output-folder": {
|
|
337
327
|
type: "boolean",
|
|
338
328
|
nullable: true,
|
|
339
329
|
description:
|
|
340
|
-
"Determine whether to clear the entire output folder. By default, only the 'sources' folder is cleared, so metadata files at the project root remain untouched. This option can be useful in pipeline scenarios."
|
|
330
|
+
"Determine whether to clear the entire output folder. By default, only the 'sources' folder is cleared, so metadata files at the project root remain untouched. This option can be useful in pipeline scenarios.",
|
|
341
331
|
},
|
|
342
332
|
"ignore-property-name-normalize": {
|
|
343
333
|
type: "boolean",
|
|
344
334
|
nullable: true,
|
|
345
335
|
description:
|
|
346
|
-
"The emitter will use camel case to normalize the property name, to ignore this normalization, you can set this option to true "
|
|
336
|
+
"The emitter will use camel case to normalize the property name, to ignore this normalization, you can set this option to true ",
|
|
347
337
|
},
|
|
348
338
|
"ignore-enum-member-name-normalize": {
|
|
349
339
|
type: "boolean",
|
|
350
340
|
nullable: true,
|
|
351
341
|
description:
|
|
352
|
-
"The emitter has a normalization logic for enum member key, to ignore this normalization, you can set this option to true"
|
|
342
|
+
"The emitter has a normalization logic for enum member key, to ignore this normalization, you can set this option to true",
|
|
353
343
|
},
|
|
354
344
|
"compatibility-query-multi-format": {
|
|
355
345
|
type: "boolean",
|
|
356
346
|
nullable: true,
|
|
357
347
|
description:
|
|
358
|
-
"Whether to generate the backward-compatible code for query parameter serialization for array types in RLC. Defaults to `false`"
|
|
348
|
+
"Whether to generate the backward-compatible code for query parameter serialization for array types in RLC. Defaults to `false`",
|
|
359
349
|
},
|
|
360
350
|
"default-value-object": {
|
|
361
351
|
type: "boolean",
|
|
362
352
|
nullable: true,
|
|
363
|
-
description: "Deprecated option for RLC legacy generation."
|
|
353
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
364
354
|
},
|
|
365
355
|
"typespec-title-map": {
|
|
366
356
|
type: "object",
|
|
367
357
|
additionalProperties: {
|
|
368
|
-
type: "string"
|
|
358
|
+
type: "string",
|
|
369
359
|
},
|
|
370
360
|
required: [],
|
|
371
361
|
nullable: true,
|
|
@@ -377,45 +367,45 @@ export const RLCOptionsSchema: JSONSchemaType<EmitterOptions> = {
|
|
|
377
367
|
AnomalyDetectorClient: AnomalyDetectorRest
|
|
378
368
|
AnomalyDetectorClient2: AnomalyDetectorRest2
|
|
379
369
|
\`\`\`
|
|
380
|
-
|
|
370
|
+
`,
|
|
381
371
|
},
|
|
382
372
|
"should-use-pnpm-dep": {
|
|
383
373
|
type: "boolean",
|
|
384
374
|
nullable: true,
|
|
385
|
-
description: "Internal option for test."
|
|
375
|
+
description: "Internal option for test.",
|
|
386
376
|
},
|
|
387
377
|
"ignore-nullable-on-optional": {
|
|
388
378
|
type: "boolean",
|
|
389
379
|
nullable: true,
|
|
390
380
|
description:
|
|
391
|
-
"If an optional property is also marked as nullable, it will be treated as just optional. Defaults to `true` for Azure services."
|
|
381
|
+
"If an optional property is also marked as nullable, it will be treated as just optional. Defaults to `true` for Azure services.",
|
|
392
382
|
},
|
|
393
383
|
"wrap-non-model-return": {
|
|
394
384
|
type: "boolean",
|
|
395
385
|
nullable: true,
|
|
396
386
|
description:
|
|
397
|
-
"When set to true (default for Azure services), non-model return types (arrays, scalars, enums, bytes with binary content type) will be wrapped in an XxxResponse type for HLC backward compatibility during TypeSpec migration."
|
|
387
|
+
"When set to true (default for Azure services), non-model return types (arrays, scalars, enums, bytes with binary content type) will be wrapped in an XxxResponse type for HLC backward compatibility during TypeSpec migration.",
|
|
398
388
|
},
|
|
399
389
|
"enable-storage-compat": {
|
|
400
390
|
type: "boolean",
|
|
401
391
|
nullable: true,
|
|
402
392
|
description:
|
|
403
|
-
"When enabled, every regular (non-LRO, non-paging) operation return type is augmented with a `_response` property containing `rawResponse` (PathUncheckedResponse), `parsedBody`, and `parsedHeaders`. Defaults to `false`."
|
|
393
|
+
"When enabled, every regular (non-LRO, non-paging) operation return type is augmented with a `_response` property containing `rawResponse` (PathUncheckedResponse), `parsedBody`, and `parsedHeaders`. Defaults to `false`.",
|
|
404
394
|
},
|
|
405
395
|
"treat-unknown-as-record": {
|
|
406
396
|
type: "boolean",
|
|
407
397
|
nullable: true,
|
|
408
398
|
description:
|
|
409
|
-
"When set to true, TypeSpec `unknown` type will be translated to `Record<string, unknown>` instead of `any` in the generated Modular SDK. This is useful when migrating from HLC where `unknown` in swagger mapped to `Record<string, unknown>`. (Modular SDK only) Defaults to `false`."
|
|
399
|
+
"When set to true, TypeSpec `unknown` type will be translated to `Record<string, unknown>` instead of `any` in the generated Modular SDK. This is useful when migrating from HLC where `unknown` in swagger mapped to `Record<string, unknown>`. (Modular SDK only) Defaults to `false`.",
|
|
410
400
|
},
|
|
411
401
|
"generate-react-native-target": {
|
|
412
402
|
type: "boolean",
|
|
413
403
|
nullable: true,
|
|
414
404
|
description:
|
|
415
|
-
"When set to true, generates React Native build targets (tsconfig, warp target, package.json exports). Only applicable when azure-sdk-for-js is true. Defaults to `false`."
|
|
416
|
-
}
|
|
405
|
+
"When set to true, generates React Native build targets (tsconfig, warp target, package.json exports). Only applicable when azure-sdk-for-js is true. Defaults to `false`.",
|
|
406
|
+
},
|
|
417
407
|
},
|
|
418
|
-
required: []
|
|
408
|
+
required: [],
|
|
419
409
|
};
|
|
420
410
|
|
|
421
411
|
const libDef = {
|
|
@@ -424,271 +414,266 @@ const libDef = {
|
|
|
424
414
|
"security-service-namespace": {
|
|
425
415
|
severity: "error",
|
|
426
416
|
messages: {
|
|
427
|
-
default:
|
|
428
|
-
|
|
429
|
-
}
|
|
417
|
+
default: "Cannot add security details to a namespace other than the service namespace.",
|
|
418
|
+
},
|
|
430
419
|
},
|
|
431
420
|
"more-than-one-service": {
|
|
432
421
|
severity: "error",
|
|
433
422
|
messages: {
|
|
434
|
-
default:
|
|
435
|
-
|
|
436
|
-
}
|
|
423
|
+
default: "Only support one service and more than one services are not allowed.",
|
|
424
|
+
},
|
|
437
425
|
},
|
|
438
426
|
"no-service-defined": {
|
|
439
427
|
severity: "warning",
|
|
440
428
|
messages: {
|
|
441
|
-
default:
|
|
442
|
-
|
|
443
|
-
}
|
|
429
|
+
default: "No service defined and must have one and only one service defined.",
|
|
430
|
+
},
|
|
444
431
|
},
|
|
445
432
|
"resource-namespace": {
|
|
446
433
|
severity: "error",
|
|
447
434
|
messages: {
|
|
448
|
-
default: "Resource goes on namespace"
|
|
449
|
-
}
|
|
435
|
+
default: "Resource goes on namespace",
|
|
436
|
+
},
|
|
450
437
|
},
|
|
451
438
|
"missing-path-param": {
|
|
452
439
|
severity: "error",
|
|
453
440
|
messages: {
|
|
454
|
-
default: paramMessage`Path contains parameter ${"param"} but wasn't found in given parameters
|
|
455
|
-
}
|
|
441
|
+
default: paramMessage`Path contains parameter ${"param"} but wasn't found in given parameters`,
|
|
442
|
+
},
|
|
456
443
|
},
|
|
457
444
|
"duplicate-body-types": {
|
|
458
445
|
severity: "error",
|
|
459
446
|
messages: {
|
|
460
|
-
default: "Request has multiple body types"
|
|
461
|
-
}
|
|
447
|
+
default: "Request has multiple body types",
|
|
448
|
+
},
|
|
462
449
|
},
|
|
463
450
|
"duplicate-header": {
|
|
464
451
|
severity: "error",
|
|
465
452
|
messages: {
|
|
466
|
-
default: paramMessage`The header ${"header"} is defined across multiple content types
|
|
467
|
-
}
|
|
453
|
+
default: paramMessage`The header ${"header"} is defined across multiple content types`,
|
|
454
|
+
},
|
|
468
455
|
},
|
|
469
456
|
"duplicate-example": {
|
|
470
457
|
severity: "error",
|
|
471
458
|
messages: {
|
|
472
|
-
default: "Duplicate @example declarations on operation"
|
|
473
|
-
}
|
|
459
|
+
default: "Duplicate @example declarations on operation",
|
|
460
|
+
},
|
|
474
461
|
},
|
|
475
462
|
"invalid-schema": {
|
|
476
463
|
severity: "error",
|
|
477
464
|
messages: {
|
|
478
|
-
default: paramMessage`Couldn't get schema for type ${"type"} with property ${"property"}
|
|
479
|
-
}
|
|
465
|
+
default: paramMessage`Couldn't get schema for type ${"type"} with property ${"property"}`,
|
|
466
|
+
},
|
|
480
467
|
},
|
|
481
468
|
"union-null": {
|
|
482
469
|
severity: "error",
|
|
483
470
|
messages: {
|
|
484
|
-
default: "Cannot have a union containing only null types."
|
|
485
|
-
}
|
|
471
|
+
default: "Cannot have a union containing only null types.",
|
|
472
|
+
},
|
|
486
473
|
},
|
|
487
474
|
"union-unsupported": {
|
|
488
475
|
severity: "error",
|
|
489
476
|
messages: {
|
|
490
477
|
default:
|
|
491
478
|
"Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.",
|
|
492
|
-
null: "Unions containing multiple model types cannot be emitted to OpenAPI v2 unless the union is between one model type and 'null'."
|
|
493
|
-
}
|
|
479
|
+
null: "Unions containing multiple model types cannot be emitted to OpenAPI v2 unless the union is between one model type and 'null'.",
|
|
480
|
+
},
|
|
494
481
|
},
|
|
495
482
|
discriminator: {
|
|
496
483
|
severity: "error",
|
|
497
484
|
messages: {
|
|
498
485
|
duplicate: paramMessage`Discriminator value "${"val"}" defined in two different variants: ${"model1"} and ${"model2"}`,
|
|
499
|
-
missing:
|
|
500
|
-
"The discriminator property is not defined in a variant of a discriminated union.",
|
|
486
|
+
missing: "The discriminator property is not defined in a variant of a discriminated union.",
|
|
501
487
|
required: "the discriminator property must be a required property.",
|
|
502
|
-
type: "the discriminator property must be type 'string'."
|
|
503
|
-
}
|
|
488
|
+
type: "the discriminator property must be type 'string'.",
|
|
489
|
+
},
|
|
504
490
|
},
|
|
505
491
|
"discriminator-value": {
|
|
506
492
|
severity: "warning",
|
|
507
493
|
messages: {
|
|
508
494
|
literal:
|
|
509
|
-
"Each variant of a discriminated union should define the discriminator property with a string literal value."
|
|
510
|
-
}
|
|
495
|
+
"Each variant of a discriminated union should define the discriminator property with a string literal value.",
|
|
496
|
+
},
|
|
511
497
|
},
|
|
512
498
|
"invalid-default": {
|
|
513
499
|
severity: "error",
|
|
514
500
|
messages: {
|
|
515
|
-
default: paramMessage`Invalid type '${"type"}' for a default value
|
|
516
|
-
}
|
|
501
|
+
default: paramMessage`Invalid type '${"type"}' for a default value`,
|
|
502
|
+
},
|
|
517
503
|
},
|
|
518
504
|
"no-credential-scopes": {
|
|
519
505
|
severity: "warning",
|
|
520
506
|
messages: {
|
|
521
507
|
default:
|
|
522
|
-
"Please provide credential scopes to ensure the token credential signature can be generated."
|
|
523
|
-
}
|
|
508
|
+
"Please provide credential scopes to ensure the token credential signature can be generated.",
|
|
509
|
+
},
|
|
524
510
|
},
|
|
525
511
|
"nullable-required-header": {
|
|
526
512
|
severity: "warning",
|
|
527
513
|
messages: {
|
|
528
|
-
default:
|
|
529
|
-
|
|
530
|
-
}
|
|
514
|
+
default: "Required header cannot be nullable. Please remove the nullable modifier.",
|
|
515
|
+
},
|
|
531
516
|
},
|
|
532
517
|
"no-paging-items-defined": {
|
|
533
518
|
severity: "warning",
|
|
534
519
|
messages: {
|
|
535
|
-
default: paramMessage`Operation '${"operationName"}' is marked with @list but does not have @pageItems defined
|
|
536
|
-
}
|
|
520
|
+
default: paramMessage`Operation '${"operationName"}' is marked with @list but does not have @pageItems defined.`,
|
|
521
|
+
},
|
|
537
522
|
},
|
|
538
523
|
"un-supported-paging-cases": {
|
|
539
524
|
severity: "warning",
|
|
540
525
|
messages: {
|
|
541
|
-
default: paramMessage`Nested paging items in ${"operationName"} are not supported and will be ignored
|
|
542
|
-
}
|
|
526
|
+
default: paramMessage`Nested paging items in ${"operationName"} are not supported and will be ignored.`,
|
|
527
|
+
},
|
|
543
528
|
},
|
|
544
529
|
"decimal-to-number": {
|
|
545
530
|
severity: "warning",
|
|
546
531
|
messages: {
|
|
547
|
-
default: paramMessage`Please note the decimal type will be converted to number. If you strongly care about precision you can use @encode to encode it as a string for the property - ${"propertyName"}
|
|
548
|
-
}
|
|
532
|
+
default: paramMessage`Please note the decimal type will be converted to number. If you strongly care about precision you can use @encode to encode it as a string for the property - ${"propertyName"}.`,
|
|
533
|
+
},
|
|
549
534
|
},
|
|
550
535
|
"unable-serialized-type": {
|
|
551
536
|
severity: "warning",
|
|
552
537
|
messages: {
|
|
553
|
-
default: paramMessage`Please note the header ${"type"} is not serializable
|
|
554
|
-
}
|
|
538
|
+
default: paramMessage`Please note the header ${"type"} is not serializable.`,
|
|
539
|
+
},
|
|
555
540
|
},
|
|
556
541
|
"default-response-body-type": {
|
|
557
542
|
severity: "warning",
|
|
558
543
|
messages: {
|
|
559
|
-
default: paramMessage`Please note the body type of default response for operation - ${"operationName"} is not a model type
|
|
560
|
-
}
|
|
544
|
+
default: paramMessage`Please note the body type of default response for operation - ${"operationName"} is not a model type.`,
|
|
545
|
+
},
|
|
561
546
|
},
|
|
562
547
|
"un-supported-credential": {
|
|
563
548
|
severity: "warning",
|
|
564
549
|
messages: {
|
|
565
|
-
default: paramMessage`Authentication type ${"credentialType"} is not supported
|
|
566
|
-
}
|
|
550
|
+
default: paramMessage`Authentication type ${"credentialType"} is not supported.`,
|
|
551
|
+
},
|
|
567
552
|
},
|
|
568
553
|
"un-supported-finalStateVia": {
|
|
569
554
|
severity: "warning",
|
|
570
555
|
messages: {
|
|
571
|
-
default: paramMessage`The LRO final-state-via ${"finalStateVia"} is not supported
|
|
572
|
-
}
|
|
556
|
+
default: paramMessage`The LRO final-state-via ${"finalStateVia"} is not supported.`,
|
|
557
|
+
},
|
|
573
558
|
},
|
|
574
559
|
"required-sample-parameter": {
|
|
575
560
|
severity: "warning",
|
|
576
561
|
messages: {
|
|
577
|
-
default: paramMessage`The parameter ${"paramName"} in ${"exampleName"} is required but no value provided
|
|
578
|
-
}
|
|
562
|
+
default: paramMessage`The parameter ${"paramName"} in ${"exampleName"} is required but no value provided.`,
|
|
563
|
+
},
|
|
579
564
|
},
|
|
580
565
|
"property-name-normalized": {
|
|
581
566
|
severity: "warning",
|
|
582
567
|
messages: {
|
|
583
|
-
default: paramMessage`Property name ${"propertyName"} is normalized to ${"normalizedName"}
|
|
584
|
-
}
|
|
568
|
+
default: paramMessage`Property name ${"propertyName"} is normalized to ${"normalizedName"}.`,
|
|
569
|
+
},
|
|
585
570
|
},
|
|
586
571
|
"un-supported-format-cases": {
|
|
587
572
|
severity: "warning",
|
|
588
573
|
messages: {
|
|
589
|
-
default: paramMessage`The parameter ${"paramName"} with explode: ${"explode"} and format: ${"format"} is not supported
|
|
590
|
-
}
|
|
574
|
+
default: paramMessage`The parameter ${"paramName"} with explode: ${"explode"} and format: ${"format"} is not supported.`,
|
|
575
|
+
},
|
|
591
576
|
},
|
|
592
577
|
"parameter-type-not-supported": {
|
|
593
578
|
severity: "warning",
|
|
594
579
|
messages: {
|
|
595
|
-
default: paramMessage`Parameter '${"paramName"}' with type '${"paramType"}' is not supported and we would ignore this parameter
|
|
596
|
-
}
|
|
580
|
+
default: paramMessage`Parameter '${"paramName"}' with type '${"paramType"}' is not supported and we would ignore this parameter.`,
|
|
581
|
+
},
|
|
597
582
|
},
|
|
598
583
|
"prefix-adding-in-enum-member": {
|
|
599
584
|
severity: "warning",
|
|
600
585
|
messages: {
|
|
601
|
-
default: paramMessage`Enum member name ${"memberName"} is not a valid TypeScript identifier. It has been renamed to ${"normalizedName"} using the enum type name ${"enumTypeName"} as prefix
|
|
602
|
-
}
|
|
586
|
+
default: paramMessage`Enum member name ${"memberName"} is not a valid TypeScript identifier. It has been renamed to ${"normalizedName"} using the enum type name ${"enumTypeName"} as prefix.`,
|
|
587
|
+
},
|
|
603
588
|
},
|
|
604
589
|
"default-value-object": {
|
|
605
590
|
severity: "warning",
|
|
606
591
|
messages: {
|
|
607
|
-
default: paramMessage`Please note the default value is an object type
|
|
608
|
-
}
|
|
592
|
+
default: paramMessage`Please note the default value is an object type.`,
|
|
593
|
+
},
|
|
609
594
|
},
|
|
610
595
|
"property-name-conflict": {
|
|
611
596
|
severity: "warning",
|
|
612
597
|
messages: {
|
|
613
|
-
default: paramMessage`The property name ${"propertyName"} has conflicts with others and please use @clientName to rename it
|
|
614
|
-
}
|
|
598
|
+
default: paramMessage`The property name ${"propertyName"} has conflicts with others and please use @clientName to rename it.`,
|
|
599
|
+
},
|
|
615
600
|
},
|
|
616
601
|
"parameter-name-conflict": {
|
|
617
602
|
severity: "warning",
|
|
618
603
|
messages: {
|
|
619
|
-
default: paramMessage`The parameter name ${"parameterName"} has conflicts with others and please use @clientName to rename it
|
|
620
|
-
}
|
|
604
|
+
default: paramMessage`The parameter name ${"parameterName"} has conflicts with others and please use @clientName to rename it.`,
|
|
605
|
+
},
|
|
621
606
|
},
|
|
622
607
|
"unsupported-flatten-transition": {
|
|
623
608
|
severity: "warning",
|
|
624
609
|
messages: {
|
|
625
|
-
default: paramMessage`The property "${"propertyName"}" in "${"modelName"}" has multiple consecutive flatten operations. Flatten transitions are not supported so consecutive transitions will be ignored
|
|
626
|
-
}
|
|
610
|
+
default: paramMessage`The property "${"propertyName"}" in "${"modelName"}" has multiple consecutive flatten operations. Flatten transitions are not supported so consecutive transitions will be ignored.`,
|
|
611
|
+
},
|
|
627
612
|
},
|
|
628
613
|
"unsupported-parameter-type": {
|
|
629
614
|
severity: "error",
|
|
630
615
|
messages: {
|
|
631
|
-
default: paramMessage`Parameter '${"paramName"}' with kind '${"paramKind"}' is not supported
|
|
632
|
-
}
|
|
616
|
+
default: paramMessage`Parameter '${"paramName"}' with kind '${"paramKind"}' is not supported.`,
|
|
617
|
+
},
|
|
633
618
|
},
|
|
634
619
|
"unknown-sdk-method-kind": {
|
|
635
620
|
severity: "error",
|
|
636
621
|
messages: {
|
|
637
|
-
default: paramMessage`Unknown SDK method kind: '${"methodKind"}'
|
|
638
|
-
}
|
|
622
|
+
default: paramMessage`Unknown SDK method kind: '${"methodKind"}'.`,
|
|
623
|
+
},
|
|
639
624
|
},
|
|
640
625
|
"client-file-not-found": {
|
|
641
626
|
severity: "error",
|
|
642
627
|
messages: {
|
|
643
|
-
default: paramMessage`Client file not found: '${"filePath"}'
|
|
644
|
-
}
|
|
628
|
+
default: paramMessage`Client file not found: '${"filePath"}'.`,
|
|
629
|
+
},
|
|
645
630
|
},
|
|
646
631
|
"anonymous-type-serialization": {
|
|
647
632
|
severity: "error",
|
|
648
633
|
messages: {
|
|
649
|
-
default: "Serialization of anonymous types is not yet implemented."
|
|
650
|
-
}
|
|
634
|
+
default: "Serialization of anonymous types is not yet implemented.",
|
|
635
|
+
},
|
|
651
636
|
},
|
|
652
637
|
"anonymous-type-deserialization": {
|
|
653
638
|
severity: "error",
|
|
654
639
|
messages: {
|
|
655
|
-
default: "Deserialization of anonymous types is not yet implemented."
|
|
656
|
-
}
|
|
640
|
+
default: "Deserialization of anonymous types is not yet implemented.",
|
|
641
|
+
},
|
|
657
642
|
},
|
|
658
643
|
"lro-polling-config-error": {
|
|
659
644
|
severity: "error",
|
|
660
645
|
messages: {
|
|
661
|
-
default: paramMessage`LRO polling configuration error: ${"message"}
|
|
662
|
-
}
|
|
646
|
+
default: paramMessage`LRO polling configuration error: ${"message"}.`,
|
|
647
|
+
},
|
|
663
648
|
},
|
|
664
649
|
"file-formatting-error": {
|
|
665
650
|
severity: "error",
|
|
666
651
|
messages: {
|
|
667
|
-
default: paramMessage`Failed to format file: ${"filePath"}. Error: ${"error"}
|
|
668
|
-
}
|
|
652
|
+
default: paramMessage`Failed to format file: ${"filePath"}. Error: ${"error"}.`,
|
|
653
|
+
},
|
|
669
654
|
},
|
|
670
655
|
"directory-traversal-error": {
|
|
671
656
|
severity: "error",
|
|
672
657
|
messages: {
|
|
673
|
-
default: paramMessage`Error traversing directory ${"directory"}: ${"error"}
|
|
674
|
-
}
|
|
658
|
+
default: paramMessage`Error traversing directory ${"directory"}: ${"error"}`,
|
|
659
|
+
},
|
|
675
660
|
},
|
|
676
661
|
"detected-model-name-conflict": {
|
|
677
662
|
severity: "warning",
|
|
678
663
|
messages: {
|
|
679
|
-
default: paramMessage`Model name conflict detected: "${"modelName"}" exists in multiple namespaces: ${"namespaces"}. Please use @clientName to rename them
|
|
680
|
-
}
|
|
664
|
+
default: paramMessage`Model name conflict detected: "${"modelName"}" exists in multiple namespaces: ${"namespaces"}. Please use @clientName to rename them.`,
|
|
665
|
+
},
|
|
681
666
|
},
|
|
682
667
|
"un-supported-array-encoding": {
|
|
683
668
|
severity: "warning",
|
|
684
669
|
messages: {
|
|
685
|
-
default: paramMessage`The array property "${"arrayName"}" of ${"arrayType"} type is not supported for encoding and will be ignored
|
|
686
|
-
}
|
|
687
|
-
}
|
|
670
|
+
default: paramMessage`The array property "${"arrayName"}" of ${"arrayType"} type is not supported for encoding and will be ignored.`,
|
|
671
|
+
},
|
|
672
|
+
},
|
|
688
673
|
},
|
|
689
674
|
emitter: {
|
|
690
|
-
options: RLCOptionsSchema
|
|
691
|
-
}
|
|
675
|
+
options: RLCOptionsSchema,
|
|
676
|
+
},
|
|
692
677
|
} as const;
|
|
693
678
|
|
|
694
679
|
export const $lib = createTypeSpecLibrary(libDef);
|
|
@@ -702,12 +687,12 @@ export const prettierTypeScriptOptions: Options = {
|
|
|
702
687
|
printWidth: 100,
|
|
703
688
|
semi: true,
|
|
704
689
|
singleQuote: false,
|
|
705
|
-
tabWidth: 2
|
|
690
|
+
tabWidth: 2,
|
|
706
691
|
};
|
|
707
692
|
|
|
708
693
|
export const prettierJSONOptions: Options = {
|
|
709
694
|
parser: "json",
|
|
710
695
|
tabWidth: 2,
|
|
711
696
|
semi: false,
|
|
712
|
-
singleQuote: false
|
|
697
|
+
singleQuote: false,
|
|
713
698
|
};
|