@azure-tools/typespec-ts 0.54.0-dev.5 → 0.54.0-dev.7
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/dist/src/contextManager.d.ts +5 -5
- package/dist/src/contextManager.d.ts.map +1 -1
- 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 +12 -20
- 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 -11
- 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 +12 -25
- 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 +1 -1
- 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 +47 -48
- 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 +49 -62
- 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 +4 -7
- 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 +30 -36
- 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 +2 -2
- 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 +22 -23
- 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 +7 -9
- 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 +11 -11
- 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 +30 -39
- 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 -17
- 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 +2 -2
- 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 +54 -72
- 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 +6 -7
- 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 +40 -52
- 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 +9 -12
- 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 +27 -36
- 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 +20 -38
- 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.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 +39 -58
- 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 +4 -5
- 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 +136 -196
- 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 +1 -1
- 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 +50 -56
- 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 +52 -59
- 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 +43 -51
- 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 +4 -11
- 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 -1
- 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 +7 -9
- 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.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 +4 -8
- 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 +48 -66
- 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 +24 -42
- 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 +57 -57
- 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 +32 -35
- 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 +3 -3
- 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 +3 -3
- 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 +29 -46
- 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 +42 -50
- 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 +5 -5
- 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 +19 -22
- 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 +9 -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 +2 -3
- 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 +23 -25
- 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.map +1 -1
- package/dist/src/rlc-common/helpers/nameUtils.d.ts.map +1 -1
- package/dist/src/rlc-common/helpers/nameUtils.js +8 -13
- 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 +8 -12
- package/dist/src/rlc-common/helpers/operationHelpers.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 +1 -1
- 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 +1 -2
- package/dist/src/rlc-common/helpers/typeUtil.js.map +1 -1
- package/dist/src/rlc-common/helpers/valueGenerationUtil.js +3 -4
- 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 +13 -13
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildChangelogFile.js +1 -1
- package/dist/src/rlc-common/metadata/buildESLintConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildESLintConfig.js +3 -5
- 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 +16 -16
- 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 +10 -18
- 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 +3 -4
- 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 +2 -3
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.js.map +1 -1
- package/dist/src/rlc-common/metadata/buildTestConfig.js +8 -8
- package/dist/src/rlc-common/metadata/buildTsConfig.d.ts.map +1 -1
- package/dist/src/rlc-common/metadata/buildTsConfig.js +23 -21
- 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 -4
- 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 +2 -2
- 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 +13 -13
- 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 +22 -26
- 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 +26 -29
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.js.map +1 -1
- package/dist/src/rlc-common/test/buildKarmaConfig.js +1 -1
- package/dist/src/rlc-common/test/buildRecordedClient.js +3 -3
- package/dist/src/rlc-common/test/buildSampleTest.d.ts.map +1 -1
- package/dist/src/rlc-common/test/buildSampleTest.js +2 -2
- 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 +4 -6
- 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 +19 -23
- 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 +10 -11
- 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 +8 -10
- 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 +9 -11
- 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 +22 -28
- 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 +11 -12
- 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 +12 -12
- 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 -15
- 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 +14 -26
- 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 +11 -14
- 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 +3 -3
- 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 +8 -12
- 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 +4 -6
- package/dist/src/utils/emitUtil.js.map +1 -1
- package/dist/src/utils/fileSystemUtils.d.ts.map +1 -1
- package/dist/src/utils/fileSystemUtils.js +2 -2
- 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 +2 -4
- 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 +2 -2
- package/dist/src/utils/modelUtils.d.ts.map +1 -1
- package/dist/src/utils/modelUtils.js +107 -170
- 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 +2 -2
- 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 +29 -42
- 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 +19 -22
- 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 +1 -5
- 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 +111 -180
- 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 -159
- 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 +91 -177
- 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 +97 -209
- 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 -21
- 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 +43 -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 +78 -155
- package/src/rlc-common/buildPaginateHelper.ts +9 -12
- package/src/rlc-common/buildParameterTypes.ts +92 -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 +12 -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 +4 -6
- 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 +174 -383
- 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 +15 -28
- 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.ts +2 -2
- 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 +41 -89
- package/static/static-helpers/simplePollerHelpers.ts +9 -18
- 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/dist/src/lib.js
CHANGED
|
@@ -8,25 +8,25 @@ export const RLCOptionsSchema = {
|
|
|
8
8
|
"include-headers-in-response": {
|
|
9
9
|
type: "boolean",
|
|
10
10
|
nullable: true,
|
|
11
|
-
description: "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."
|
|
11
|
+
description: "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.",
|
|
12
12
|
},
|
|
13
13
|
"include-shortcuts": {
|
|
14
14
|
type: "boolean",
|
|
15
15
|
nullable: true,
|
|
16
|
-
description: "Deprecated option for RLC legacy generation."
|
|
16
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
17
17
|
},
|
|
18
18
|
"multi-client": {
|
|
19
19
|
type: "boolean",
|
|
20
20
|
nullable: true,
|
|
21
|
-
description: "Deprecated option for RLC legacy generation."
|
|
21
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
22
22
|
},
|
|
23
23
|
batch: {
|
|
24
24
|
type: "array",
|
|
25
25
|
nullable: true,
|
|
26
26
|
items: {
|
|
27
|
-
type: "string"
|
|
27
|
+
type: "string",
|
|
28
28
|
},
|
|
29
|
-
description: "Deprecated option for RLC legacy generation."
|
|
29
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
30
30
|
},
|
|
31
31
|
"package-details": {
|
|
32
32
|
type: "object",
|
|
@@ -37,11 +37,11 @@ export const RLCOptionsSchema = {
|
|
|
37
37
|
nameWithoutScope: { type: "string", nullable: true },
|
|
38
38
|
description: { type: "string", nullable: true },
|
|
39
39
|
version: { type: "string", nullable: true },
|
|
40
|
-
isVersionUserProvided: { type: "boolean", nullable: true }
|
|
40
|
+
isVersionUserProvided: { type: "boolean", nullable: true },
|
|
41
41
|
},
|
|
42
42
|
required: ["name"],
|
|
43
43
|
nullable: true,
|
|
44
|
-
description: "This is to indicate the package information such as package name, package description etc."
|
|
44
|
+
description: "This is to indicate the package information such as package name, package description etc.",
|
|
45
45
|
},
|
|
46
46
|
"add-credentials": {
|
|
47
47
|
type: "boolean",
|
|
@@ -57,35 +57,35 @@ export const RLCOptionsSchema = {
|
|
|
57
57
|
Please notice defining in TypeSpec is recommended and also has higher priority than second one.
|
|
58
58
|
|
|
59
59
|
To enable credential in \`tspconfig.yaml\` and we need to provide more details to let codegen know types.
|
|
60
|
-
|
|
60
|
+
`,
|
|
61
61
|
},
|
|
62
62
|
"credential-scopes": {
|
|
63
63
|
type: "array",
|
|
64
64
|
nullable: true,
|
|
65
65
|
items: { type: "string" },
|
|
66
|
-
description: "If we enable the option `add-credentials` and specify `credential-scopes` the details we would enable the AADToken authentication."
|
|
66
|
+
description: "If we enable the option `add-credentials` and specify `credential-scopes` the details we would enable the AADToken authentication.",
|
|
67
67
|
},
|
|
68
68
|
"credential-key-header-name": {
|
|
69
69
|
type: "string",
|
|
70
70
|
nullable: true,
|
|
71
|
-
description: "If we enable the option `add-credentials` and specify `credential-key-header-name` the details we would enable the AzureKey authentication."
|
|
71
|
+
description: "If we enable the option `add-credentials` and specify `credential-key-header-name` the details we would enable the AzureKey authentication.",
|
|
72
72
|
},
|
|
73
73
|
"custom-http-auth-header-name": {
|
|
74
74
|
type: "string",
|
|
75
75
|
nullable: true,
|
|
76
|
-
description: "This option is used for special Key Auth, when the key has a shared prefix and this header is to set the header name"
|
|
76
|
+
description: "This option is used for special Key Auth, when the key has a shared prefix and this header is to set the header name",
|
|
77
77
|
},
|
|
78
78
|
"custom-http-auth-shared-key-prefix": {
|
|
79
79
|
type: "string",
|
|
80
80
|
nullable: true,
|
|
81
|
-
description: "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."
|
|
81
|
+
description: "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.",
|
|
82
82
|
},
|
|
83
83
|
"generate-metadata": {
|
|
84
84
|
type: "boolean",
|
|
85
85
|
nullable: true,
|
|
86
86
|
description: `
|
|
87
87
|
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\`.
|
|
88
|
-
|
|
88
|
+
`,
|
|
89
89
|
},
|
|
90
90
|
"generate-test": {
|
|
91
91
|
type: "boolean",
|
|
@@ -96,151 +96,151 @@ export const RLCOptionsSchema = {
|
|
|
96
96
|
- If azure-sdk-for-js is \`false\`. Defaults to \`false\`.
|
|
97
97
|
- If azure-sdk-for-js is \`true\` but there's a test folder under package-dir. Defaults to \`false\`.
|
|
98
98
|
- If azure-sdk-for-js is \`true\` but there's not a test folder under package-dir. Defaults to \`true\`.
|
|
99
|
-
|
|
99
|
+
`,
|
|
100
100
|
},
|
|
101
101
|
"generate-sample": {
|
|
102
102
|
type: "boolean",
|
|
103
103
|
nullable: true,
|
|
104
|
-
description: "Whether to generate sample files, for basic samples of your generated sdks. Defaults to `undefined`. Management packages' default to `true`."
|
|
104
|
+
description: "Whether to generate sample files, for basic samples of your generated sdks. Defaults to `undefined`. Management packages' default to `true`.",
|
|
105
105
|
},
|
|
106
106
|
"azure-sdk-for-js": {
|
|
107
107
|
type: "boolean",
|
|
108
108
|
nullable: true,
|
|
109
|
-
description: "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'. "
|
|
109
|
+
description: "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'. ",
|
|
110
110
|
},
|
|
111
111
|
"azure-output-directory": {
|
|
112
112
|
type: "string",
|
|
113
113
|
nullable: true,
|
|
114
|
-
description: "Deprecated option for RLC legacy generation"
|
|
114
|
+
description: "Deprecated option for RLC legacy generation",
|
|
115
115
|
},
|
|
116
116
|
"is-typespec-test": {
|
|
117
117
|
type: "boolean",
|
|
118
118
|
nullable: true,
|
|
119
|
-
description: "Internal option for test"
|
|
119
|
+
description: "Internal option for test",
|
|
120
120
|
},
|
|
121
121
|
title: {
|
|
122
122
|
type: "string",
|
|
123
123
|
nullable: true,
|
|
124
|
-
description: "Deprecated option for RLC legacy generation."
|
|
124
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
125
125
|
},
|
|
126
126
|
"dependency-info": {
|
|
127
127
|
type: "object",
|
|
128
128
|
additionalProperties: true,
|
|
129
129
|
properties: {
|
|
130
130
|
link: { type: "string", nullable: false },
|
|
131
|
-
description: { type: "string", nullable: false }
|
|
131
|
+
description: { type: "string", nullable: false },
|
|
132
132
|
},
|
|
133
133
|
required: [],
|
|
134
134
|
nullable: true,
|
|
135
|
-
description: "Deprecated option for RLC legacy generation."
|
|
135
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
136
136
|
},
|
|
137
137
|
"product-doc-link": {
|
|
138
138
|
type: "string",
|
|
139
139
|
nullable: true,
|
|
140
|
-
description: "Deprecated option for RLC legacy generation."
|
|
140
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
141
141
|
},
|
|
142
142
|
"service-info": {
|
|
143
143
|
type: "object",
|
|
144
144
|
additionalProperties: true,
|
|
145
145
|
properties: {
|
|
146
146
|
title: { type: "string", nullable: true },
|
|
147
|
-
description: { type: "string", nullable: true }
|
|
147
|
+
description: { type: "string", nullable: true },
|
|
148
148
|
},
|
|
149
149
|
nullable: true,
|
|
150
|
-
description: "Deprecated option for RLC legacy generation."
|
|
150
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
151
151
|
},
|
|
152
152
|
"azure-arm": {
|
|
153
153
|
type: "boolean",
|
|
154
154
|
nullable: true,
|
|
155
|
-
description: "Whether the package is an arm package."
|
|
155
|
+
description: "Whether the package is an arm package.",
|
|
156
156
|
},
|
|
157
157
|
"source-from": {
|
|
158
158
|
type: "string",
|
|
159
159
|
nullable: true,
|
|
160
|
-
description: "Internal option, the value is default for TypeSpec generation"
|
|
160
|
+
description: "Internal option, the value is default for TypeSpec generation",
|
|
161
161
|
},
|
|
162
162
|
"is-modular-library": {
|
|
163
163
|
type: "boolean",
|
|
164
164
|
nullable: true,
|
|
165
165
|
default: false,
|
|
166
|
-
description: "Whether to generate a Modular library. Defaults to `false`. Arm packages default to `true`."
|
|
166
|
+
description: "Whether to generate a Modular library. Defaults to `false`. Arm packages default to `true`.",
|
|
167
167
|
},
|
|
168
168
|
"enable-operation-group": {
|
|
169
169
|
type: "boolean",
|
|
170
170
|
nullable: true,
|
|
171
|
-
description: "An option to treat interface as operation group. This is not recommended unless specifically told so"
|
|
171
|
+
description: "An option to treat interface as operation group. This is not recommended unless specifically told so",
|
|
172
172
|
},
|
|
173
173
|
"enable-model-namespace": {
|
|
174
174
|
type: "boolean",
|
|
175
175
|
nullable: true,
|
|
176
|
-
description: "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."
|
|
176
|
+
description: "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.",
|
|
177
177
|
},
|
|
178
178
|
"hierarchy-client": {
|
|
179
179
|
type: "boolean",
|
|
180
180
|
nullable: true,
|
|
181
|
-
description: "An option to organize the client in a hierarchical way as defined by `@clientInitialization`. This is true by default."
|
|
181
|
+
description: "An option to organize the client in a hierarchical way as defined by `@clientInitialization`. This is true by default.",
|
|
182
182
|
},
|
|
183
183
|
branded: {
|
|
184
184
|
type: "boolean",
|
|
185
185
|
nullable: true,
|
|
186
|
-
description: "A section of flavor"
|
|
186
|
+
description: "A section of flavor",
|
|
187
187
|
},
|
|
188
188
|
flavor: {
|
|
189
189
|
type: "string",
|
|
190
190
|
nullable: true,
|
|
191
|
-
description: "The flavor of the SDK."
|
|
191
|
+
description: "The flavor of the SDK.",
|
|
192
192
|
},
|
|
193
193
|
"module-kind": {
|
|
194
194
|
type: "string",
|
|
195
195
|
nullable: true,
|
|
196
196
|
enum: ["esm"],
|
|
197
197
|
default: "esm",
|
|
198
|
-
description: "Internal option for test."
|
|
198
|
+
description: "Internal option for test.",
|
|
199
199
|
},
|
|
200
200
|
"compatibility-mode": {
|
|
201
201
|
type: "boolean",
|
|
202
202
|
nullable: true,
|
|
203
|
-
description: "Whether to affect the generation of the additional property feature for the Modular client. Defaults to `false`."
|
|
203
|
+
description: "Whether to affect the generation of the additional property feature for the Modular client. Defaults to `false`.",
|
|
204
204
|
},
|
|
205
205
|
"compatibility-lro": {
|
|
206
206
|
type: "boolean",
|
|
207
207
|
nullable: true,
|
|
208
|
-
description: "[deprecated] Whether to generate the legacy LRO interface. When `true`, we will generate legacy beginXXX and beginXXXAndWait LRO methods."
|
|
208
|
+
description: "[deprecated] Whether to generate the legacy LRO interface. When `true`, we will generate legacy beginXXX and beginXXXAndWait LRO methods.",
|
|
209
209
|
},
|
|
210
210
|
"experimental-extensible-enums": {
|
|
211
211
|
type: "boolean",
|
|
212
212
|
nullable: true,
|
|
213
|
-
description: "Whether to transform union type enums to extensible enums"
|
|
213
|
+
description: "Whether to transform union type enums to extensible enums",
|
|
214
214
|
},
|
|
215
215
|
"clear-output-folder": {
|
|
216
216
|
type: "boolean",
|
|
217
217
|
nullable: true,
|
|
218
|
-
description: "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."
|
|
218
|
+
description: "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.",
|
|
219
219
|
},
|
|
220
220
|
"ignore-property-name-normalize": {
|
|
221
221
|
type: "boolean",
|
|
222
222
|
nullable: true,
|
|
223
|
-
description: "The emitter will use camel case to normalize the property name, to ignore this normalization, you can set this option to true "
|
|
223
|
+
description: "The emitter will use camel case to normalize the property name, to ignore this normalization, you can set this option to true ",
|
|
224
224
|
},
|
|
225
225
|
"ignore-enum-member-name-normalize": {
|
|
226
226
|
type: "boolean",
|
|
227
227
|
nullable: true,
|
|
228
|
-
description: "The emitter has a normalization logic for enum member key, to ignore this normalization, you can set this option to true"
|
|
228
|
+
description: "The emitter has a normalization logic for enum member key, to ignore this normalization, you can set this option to true",
|
|
229
229
|
},
|
|
230
230
|
"compatibility-query-multi-format": {
|
|
231
231
|
type: "boolean",
|
|
232
232
|
nullable: true,
|
|
233
|
-
description: "Whether to generate the backward-compatible code for query parameter serialization for array types in RLC. Defaults to `false`"
|
|
233
|
+
description: "Whether to generate the backward-compatible code for query parameter serialization for array types in RLC. Defaults to `false`",
|
|
234
234
|
},
|
|
235
235
|
"default-value-object": {
|
|
236
236
|
type: "boolean",
|
|
237
237
|
nullable: true,
|
|
238
|
-
description: "Deprecated option for RLC legacy generation."
|
|
238
|
+
description: "Deprecated option for RLC legacy generation.",
|
|
239
239
|
},
|
|
240
240
|
"typespec-title-map": {
|
|
241
241
|
type: "object",
|
|
242
242
|
additionalProperties: {
|
|
243
|
-
type: "string"
|
|
243
|
+
type: "string",
|
|
244
244
|
},
|
|
245
245
|
required: [],
|
|
246
246
|
nullable: true,
|
|
@@ -252,40 +252,40 @@ export const RLCOptionsSchema = {
|
|
|
252
252
|
AnomalyDetectorClient: AnomalyDetectorRest
|
|
253
253
|
AnomalyDetectorClient2: AnomalyDetectorRest2
|
|
254
254
|
\`\`\`
|
|
255
|
-
|
|
255
|
+
`,
|
|
256
256
|
},
|
|
257
257
|
"should-use-pnpm-dep": {
|
|
258
258
|
type: "boolean",
|
|
259
259
|
nullable: true,
|
|
260
|
-
description: "Internal option for test."
|
|
260
|
+
description: "Internal option for test.",
|
|
261
261
|
},
|
|
262
262
|
"ignore-nullable-on-optional": {
|
|
263
263
|
type: "boolean",
|
|
264
264
|
nullable: true,
|
|
265
|
-
description: "If an optional property is also marked as nullable, it will be treated as just optional. Defaults to `true` for Azure services."
|
|
265
|
+
description: "If an optional property is also marked as nullable, it will be treated as just optional. Defaults to `true` for Azure services.",
|
|
266
266
|
},
|
|
267
267
|
"wrap-non-model-return": {
|
|
268
268
|
type: "boolean",
|
|
269
269
|
nullable: true,
|
|
270
|
-
description: "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."
|
|
270
|
+
description: "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.",
|
|
271
271
|
},
|
|
272
272
|
"enable-storage-compat": {
|
|
273
273
|
type: "boolean",
|
|
274
274
|
nullable: true,
|
|
275
|
-
description: "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`."
|
|
275
|
+
description: "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`.",
|
|
276
276
|
},
|
|
277
277
|
"treat-unknown-as-record": {
|
|
278
278
|
type: "boolean",
|
|
279
279
|
nullable: true,
|
|
280
|
-
description: "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`."
|
|
280
|
+
description: "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`.",
|
|
281
281
|
},
|
|
282
282
|
"generate-react-native-target": {
|
|
283
283
|
type: "boolean",
|
|
284
284
|
nullable: true,
|
|
285
|
-
description: "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`."
|
|
286
|
-
}
|
|
285
|
+
description: "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`.",
|
|
286
|
+
},
|
|
287
287
|
},
|
|
288
|
-
required: []
|
|
288
|
+
required: [],
|
|
289
289
|
};
|
|
290
290
|
const libDef = {
|
|
291
291
|
name: "@azure-tools/typespec-ts",
|
|
@@ -293,69 +293,69 @@ const libDef = {
|
|
|
293
293
|
"security-service-namespace": {
|
|
294
294
|
severity: "error",
|
|
295
295
|
messages: {
|
|
296
|
-
default: "Cannot add security details to a namespace other than the service namespace."
|
|
297
|
-
}
|
|
296
|
+
default: "Cannot add security details to a namespace other than the service namespace.",
|
|
297
|
+
},
|
|
298
298
|
},
|
|
299
299
|
"more-than-one-service": {
|
|
300
300
|
severity: "error",
|
|
301
301
|
messages: {
|
|
302
|
-
default: "Only support one service and more than one services are not allowed."
|
|
303
|
-
}
|
|
302
|
+
default: "Only support one service and more than one services are not allowed.",
|
|
303
|
+
},
|
|
304
304
|
},
|
|
305
305
|
"no-service-defined": {
|
|
306
306
|
severity: "warning",
|
|
307
307
|
messages: {
|
|
308
|
-
default: "No service defined and must have one and only one service defined."
|
|
309
|
-
}
|
|
308
|
+
default: "No service defined and must have one and only one service defined.",
|
|
309
|
+
},
|
|
310
310
|
},
|
|
311
311
|
"resource-namespace": {
|
|
312
312
|
severity: "error",
|
|
313
313
|
messages: {
|
|
314
|
-
default: "Resource goes on namespace"
|
|
315
|
-
}
|
|
314
|
+
default: "Resource goes on namespace",
|
|
315
|
+
},
|
|
316
316
|
},
|
|
317
317
|
"missing-path-param": {
|
|
318
318
|
severity: "error",
|
|
319
319
|
messages: {
|
|
320
|
-
default: paramMessage `Path contains parameter ${"param"} but wasn't found in given parameters
|
|
321
|
-
}
|
|
320
|
+
default: paramMessage `Path contains parameter ${"param"} but wasn't found in given parameters`,
|
|
321
|
+
},
|
|
322
322
|
},
|
|
323
323
|
"duplicate-body-types": {
|
|
324
324
|
severity: "error",
|
|
325
325
|
messages: {
|
|
326
|
-
default: "Request has multiple body types"
|
|
327
|
-
}
|
|
326
|
+
default: "Request has multiple body types",
|
|
327
|
+
},
|
|
328
328
|
},
|
|
329
329
|
"duplicate-header": {
|
|
330
330
|
severity: "error",
|
|
331
331
|
messages: {
|
|
332
|
-
default: paramMessage `The header ${"header"} is defined across multiple content types
|
|
333
|
-
}
|
|
332
|
+
default: paramMessage `The header ${"header"} is defined across multiple content types`,
|
|
333
|
+
},
|
|
334
334
|
},
|
|
335
335
|
"duplicate-example": {
|
|
336
336
|
severity: "error",
|
|
337
337
|
messages: {
|
|
338
|
-
default: "Duplicate @example declarations on operation"
|
|
339
|
-
}
|
|
338
|
+
default: "Duplicate @example declarations on operation",
|
|
339
|
+
},
|
|
340
340
|
},
|
|
341
341
|
"invalid-schema": {
|
|
342
342
|
severity: "error",
|
|
343
343
|
messages: {
|
|
344
|
-
default: paramMessage `Couldn't get schema for type ${"type"} with property ${"property"}
|
|
345
|
-
}
|
|
344
|
+
default: paramMessage `Couldn't get schema for type ${"type"} with property ${"property"}`,
|
|
345
|
+
},
|
|
346
346
|
},
|
|
347
347
|
"union-null": {
|
|
348
348
|
severity: "error",
|
|
349
349
|
messages: {
|
|
350
|
-
default: "Cannot have a union containing only null types."
|
|
351
|
-
}
|
|
350
|
+
default: "Cannot have a union containing only null types.",
|
|
351
|
+
},
|
|
352
352
|
},
|
|
353
353
|
"union-unsupported": {
|
|
354
354
|
severity: "error",
|
|
355
355
|
messages: {
|
|
356
356
|
default: "Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.",
|
|
357
|
-
null: "Unions containing multiple model types cannot be emitted to OpenAPI v2 unless the union is between one model type and 'null'."
|
|
358
|
-
}
|
|
357
|
+
null: "Unions containing multiple model types cannot be emitted to OpenAPI v2 unless the union is between one model type and 'null'.",
|
|
358
|
+
},
|
|
359
359
|
},
|
|
360
360
|
discriminator: {
|
|
361
361
|
severity: "error",
|
|
@@ -363,193 +363,193 @@ const libDef = {
|
|
|
363
363
|
duplicate: paramMessage `Discriminator value "${"val"}" defined in two different variants: ${"model1"} and ${"model2"}`,
|
|
364
364
|
missing: "The discriminator property is not defined in a variant of a discriminated union.",
|
|
365
365
|
required: "the discriminator property must be a required property.",
|
|
366
|
-
type: "the discriminator property must be type 'string'."
|
|
367
|
-
}
|
|
366
|
+
type: "the discriminator property must be type 'string'.",
|
|
367
|
+
},
|
|
368
368
|
},
|
|
369
369
|
"discriminator-value": {
|
|
370
370
|
severity: "warning",
|
|
371
371
|
messages: {
|
|
372
|
-
literal: "Each variant of a discriminated union should define the discriminator property with a string literal value."
|
|
373
|
-
}
|
|
372
|
+
literal: "Each variant of a discriminated union should define the discriminator property with a string literal value.",
|
|
373
|
+
},
|
|
374
374
|
},
|
|
375
375
|
"invalid-default": {
|
|
376
376
|
severity: "error",
|
|
377
377
|
messages: {
|
|
378
|
-
default: paramMessage `Invalid type '${"type"}' for a default value
|
|
379
|
-
}
|
|
378
|
+
default: paramMessage `Invalid type '${"type"}' for a default value`,
|
|
379
|
+
},
|
|
380
380
|
},
|
|
381
381
|
"no-credential-scopes": {
|
|
382
382
|
severity: "warning",
|
|
383
383
|
messages: {
|
|
384
|
-
default: "Please provide credential scopes to ensure the token credential signature can be generated."
|
|
385
|
-
}
|
|
384
|
+
default: "Please provide credential scopes to ensure the token credential signature can be generated.",
|
|
385
|
+
},
|
|
386
386
|
},
|
|
387
387
|
"nullable-required-header": {
|
|
388
388
|
severity: "warning",
|
|
389
389
|
messages: {
|
|
390
|
-
default: "Required header cannot be nullable. Please remove the nullable modifier."
|
|
391
|
-
}
|
|
390
|
+
default: "Required header cannot be nullable. Please remove the nullable modifier.",
|
|
391
|
+
},
|
|
392
392
|
},
|
|
393
393
|
"no-paging-items-defined": {
|
|
394
394
|
severity: "warning",
|
|
395
395
|
messages: {
|
|
396
|
-
default: paramMessage `Operation '${"operationName"}' is marked with @list but does not have @pageItems defined
|
|
397
|
-
}
|
|
396
|
+
default: paramMessage `Operation '${"operationName"}' is marked with @list but does not have @pageItems defined.`,
|
|
397
|
+
},
|
|
398
398
|
},
|
|
399
399
|
"un-supported-paging-cases": {
|
|
400
400
|
severity: "warning",
|
|
401
401
|
messages: {
|
|
402
|
-
default: paramMessage `Nested paging items in ${"operationName"} are not supported and will be ignored
|
|
403
|
-
}
|
|
402
|
+
default: paramMessage `Nested paging items in ${"operationName"} are not supported and will be ignored.`,
|
|
403
|
+
},
|
|
404
404
|
},
|
|
405
405
|
"decimal-to-number": {
|
|
406
406
|
severity: "warning",
|
|
407
407
|
messages: {
|
|
408
|
-
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"}
|
|
409
|
-
}
|
|
408
|
+
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"}.`,
|
|
409
|
+
},
|
|
410
410
|
},
|
|
411
411
|
"unable-serialized-type": {
|
|
412
412
|
severity: "warning",
|
|
413
413
|
messages: {
|
|
414
|
-
default: paramMessage `Please note the header ${"type"} is not serializable
|
|
415
|
-
}
|
|
414
|
+
default: paramMessage `Please note the header ${"type"} is not serializable.`,
|
|
415
|
+
},
|
|
416
416
|
},
|
|
417
417
|
"default-response-body-type": {
|
|
418
418
|
severity: "warning",
|
|
419
419
|
messages: {
|
|
420
|
-
default: paramMessage `Please note the body type of default response for operation - ${"operationName"} is not a model type
|
|
421
|
-
}
|
|
420
|
+
default: paramMessage `Please note the body type of default response for operation - ${"operationName"} is not a model type.`,
|
|
421
|
+
},
|
|
422
422
|
},
|
|
423
423
|
"un-supported-credential": {
|
|
424
424
|
severity: "warning",
|
|
425
425
|
messages: {
|
|
426
|
-
default: paramMessage `Authentication type ${"credentialType"} is not supported
|
|
427
|
-
}
|
|
426
|
+
default: paramMessage `Authentication type ${"credentialType"} is not supported.`,
|
|
427
|
+
},
|
|
428
428
|
},
|
|
429
429
|
"un-supported-finalStateVia": {
|
|
430
430
|
severity: "warning",
|
|
431
431
|
messages: {
|
|
432
|
-
default: paramMessage `The LRO final-state-via ${"finalStateVia"} is not supported
|
|
433
|
-
}
|
|
432
|
+
default: paramMessage `The LRO final-state-via ${"finalStateVia"} is not supported.`,
|
|
433
|
+
},
|
|
434
434
|
},
|
|
435
435
|
"required-sample-parameter": {
|
|
436
436
|
severity: "warning",
|
|
437
437
|
messages: {
|
|
438
|
-
default: paramMessage `The parameter ${"paramName"} in ${"exampleName"} is required but no value provided
|
|
439
|
-
}
|
|
438
|
+
default: paramMessage `The parameter ${"paramName"} in ${"exampleName"} is required but no value provided.`,
|
|
439
|
+
},
|
|
440
440
|
},
|
|
441
441
|
"property-name-normalized": {
|
|
442
442
|
severity: "warning",
|
|
443
443
|
messages: {
|
|
444
|
-
default: paramMessage `Property name ${"propertyName"} is normalized to ${"normalizedName"}
|
|
445
|
-
}
|
|
444
|
+
default: paramMessage `Property name ${"propertyName"} is normalized to ${"normalizedName"}.`,
|
|
445
|
+
},
|
|
446
446
|
},
|
|
447
447
|
"un-supported-format-cases": {
|
|
448
448
|
severity: "warning",
|
|
449
449
|
messages: {
|
|
450
|
-
default: paramMessage `The parameter ${"paramName"} with explode: ${"explode"} and format: ${"format"} is not supported
|
|
451
|
-
}
|
|
450
|
+
default: paramMessage `The parameter ${"paramName"} with explode: ${"explode"} and format: ${"format"} is not supported.`,
|
|
451
|
+
},
|
|
452
452
|
},
|
|
453
453
|
"parameter-type-not-supported": {
|
|
454
454
|
severity: "warning",
|
|
455
455
|
messages: {
|
|
456
|
-
default: paramMessage `Parameter '${"paramName"}' with type '${"paramType"}' is not supported and we would ignore this parameter
|
|
457
|
-
}
|
|
456
|
+
default: paramMessage `Parameter '${"paramName"}' with type '${"paramType"}' is not supported and we would ignore this parameter.`,
|
|
457
|
+
},
|
|
458
458
|
},
|
|
459
459
|
"prefix-adding-in-enum-member": {
|
|
460
460
|
severity: "warning",
|
|
461
461
|
messages: {
|
|
462
|
-
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
|
|
463
|
-
}
|
|
462
|
+
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.`,
|
|
463
|
+
},
|
|
464
464
|
},
|
|
465
465
|
"default-value-object": {
|
|
466
466
|
severity: "warning",
|
|
467
467
|
messages: {
|
|
468
|
-
default: paramMessage `Please note the default value is an object type
|
|
469
|
-
}
|
|
468
|
+
default: paramMessage `Please note the default value is an object type.`,
|
|
469
|
+
},
|
|
470
470
|
},
|
|
471
471
|
"property-name-conflict": {
|
|
472
472
|
severity: "warning",
|
|
473
473
|
messages: {
|
|
474
|
-
default: paramMessage `The property name ${"propertyName"} has conflicts with others and please use @clientName to rename it
|
|
475
|
-
}
|
|
474
|
+
default: paramMessage `The property name ${"propertyName"} has conflicts with others and please use @clientName to rename it.`,
|
|
475
|
+
},
|
|
476
476
|
},
|
|
477
477
|
"parameter-name-conflict": {
|
|
478
478
|
severity: "warning",
|
|
479
479
|
messages: {
|
|
480
|
-
default: paramMessage `The parameter name ${"parameterName"} has conflicts with others and please use @clientName to rename it
|
|
481
|
-
}
|
|
480
|
+
default: paramMessage `The parameter name ${"parameterName"} has conflicts with others and please use @clientName to rename it.`,
|
|
481
|
+
},
|
|
482
482
|
},
|
|
483
483
|
"unsupported-flatten-transition": {
|
|
484
484
|
severity: "warning",
|
|
485
485
|
messages: {
|
|
486
|
-
default: paramMessage `The property "${"propertyName"}" in "${"modelName"}" has multiple consecutive flatten operations. Flatten transitions are not supported so consecutive transitions will be ignored
|
|
487
|
-
}
|
|
486
|
+
default: paramMessage `The property "${"propertyName"}" in "${"modelName"}" has multiple consecutive flatten operations. Flatten transitions are not supported so consecutive transitions will be ignored.`,
|
|
487
|
+
},
|
|
488
488
|
},
|
|
489
489
|
"unsupported-parameter-type": {
|
|
490
490
|
severity: "error",
|
|
491
491
|
messages: {
|
|
492
|
-
default: paramMessage `Parameter '${"paramName"}' with kind '${"paramKind"}' is not supported
|
|
493
|
-
}
|
|
492
|
+
default: paramMessage `Parameter '${"paramName"}' with kind '${"paramKind"}' is not supported.`,
|
|
493
|
+
},
|
|
494
494
|
},
|
|
495
495
|
"unknown-sdk-method-kind": {
|
|
496
496
|
severity: "error",
|
|
497
497
|
messages: {
|
|
498
|
-
default: paramMessage `Unknown SDK method kind: '${"methodKind"}'
|
|
499
|
-
}
|
|
498
|
+
default: paramMessage `Unknown SDK method kind: '${"methodKind"}'.`,
|
|
499
|
+
},
|
|
500
500
|
},
|
|
501
501
|
"client-file-not-found": {
|
|
502
502
|
severity: "error",
|
|
503
503
|
messages: {
|
|
504
|
-
default: paramMessage `Client file not found: '${"filePath"}'
|
|
505
|
-
}
|
|
504
|
+
default: paramMessage `Client file not found: '${"filePath"}'.`,
|
|
505
|
+
},
|
|
506
506
|
},
|
|
507
507
|
"anonymous-type-serialization": {
|
|
508
508
|
severity: "error",
|
|
509
509
|
messages: {
|
|
510
|
-
default: "Serialization of anonymous types is not yet implemented."
|
|
511
|
-
}
|
|
510
|
+
default: "Serialization of anonymous types is not yet implemented.",
|
|
511
|
+
},
|
|
512
512
|
},
|
|
513
513
|
"anonymous-type-deserialization": {
|
|
514
514
|
severity: "error",
|
|
515
515
|
messages: {
|
|
516
|
-
default: "Deserialization of anonymous types is not yet implemented."
|
|
517
|
-
}
|
|
516
|
+
default: "Deserialization of anonymous types is not yet implemented.",
|
|
517
|
+
},
|
|
518
518
|
},
|
|
519
519
|
"lro-polling-config-error": {
|
|
520
520
|
severity: "error",
|
|
521
521
|
messages: {
|
|
522
|
-
default: paramMessage `LRO polling configuration error: ${"message"}
|
|
523
|
-
}
|
|
522
|
+
default: paramMessage `LRO polling configuration error: ${"message"}.`,
|
|
523
|
+
},
|
|
524
524
|
},
|
|
525
525
|
"file-formatting-error": {
|
|
526
526
|
severity: "error",
|
|
527
527
|
messages: {
|
|
528
|
-
default: paramMessage `Failed to format file: ${"filePath"}. Error: ${"error"}
|
|
529
|
-
}
|
|
528
|
+
default: paramMessage `Failed to format file: ${"filePath"}. Error: ${"error"}.`,
|
|
529
|
+
},
|
|
530
530
|
},
|
|
531
531
|
"directory-traversal-error": {
|
|
532
532
|
severity: "error",
|
|
533
533
|
messages: {
|
|
534
|
-
default: paramMessage `Error traversing directory ${"directory"}: ${"error"}
|
|
535
|
-
}
|
|
534
|
+
default: paramMessage `Error traversing directory ${"directory"}: ${"error"}`,
|
|
535
|
+
},
|
|
536
536
|
},
|
|
537
537
|
"detected-model-name-conflict": {
|
|
538
538
|
severity: "warning",
|
|
539
539
|
messages: {
|
|
540
|
-
default: paramMessage `Model name conflict detected: "${"modelName"}" exists in multiple namespaces: ${"namespaces"}. Please use @clientName to rename them
|
|
541
|
-
}
|
|
540
|
+
default: paramMessage `Model name conflict detected: "${"modelName"}" exists in multiple namespaces: ${"namespaces"}. Please use @clientName to rename them.`,
|
|
541
|
+
},
|
|
542
542
|
},
|
|
543
543
|
"un-supported-array-encoding": {
|
|
544
544
|
severity: "warning",
|
|
545
545
|
messages: {
|
|
546
|
-
default: paramMessage `The array property "${"arrayName"}" of ${"arrayType"} type is not supported for encoding and will be ignored
|
|
547
|
-
}
|
|
548
|
-
}
|
|
546
|
+
default: paramMessage `The array property "${"arrayName"}" of ${"arrayType"} type is not supported for encoding and will be ignored.`,
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
549
|
},
|
|
550
550
|
emitter: {
|
|
551
|
-
options: RLCOptionsSchema
|
|
552
|
-
}
|
|
551
|
+
options: RLCOptionsSchema,
|
|
552
|
+
},
|
|
553
553
|
};
|
|
554
554
|
export const $lib = createTypeSpecLibrary(libDef);
|
|
555
555
|
export const { reportDiagnostic } = $lib;
|
|
@@ -561,12 +561,12 @@ export const prettierTypeScriptOptions = {
|
|
|
561
561
|
printWidth: 100,
|
|
562
562
|
semi: true,
|
|
563
563
|
singleQuote: false,
|
|
564
|
-
tabWidth: 2
|
|
564
|
+
tabWidth: 2,
|
|
565
565
|
};
|
|
566
566
|
export const prettierJSONOptions = {
|
|
567
567
|
parser: "json",
|
|
568
568
|
tabWidth: 2,
|
|
569
569
|
semi: false,
|
|
570
|
-
singleQuote: false
|
|
570
|
+
singleQuote: false,
|
|
571
571
|
};
|
|
572
572
|
//# sourceMappingURL=lib.js.map
|