@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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { NameType, isAzurePackage, normalizeName } from "../rlc-common/index.js";
|
|
2
|
-
import { buildGetClientCredentialParam, buildGetClientEndpointParam, buildGetClientOptionsParam, getClientParameterName, getClientParameters, getClientParametersDeclaration } from "./helpers/clientHelpers.js";
|
|
3
|
-
import {
|
|
4
|
-
import { getDocsFromDescription } from "./helpers/docsHelpers.js";
|
|
5
|
-
import { getTypeExpression } from "./type-expressions/get-type-expression.js";
|
|
6
|
-
import { resolveReference } from "../framework/reference.js";
|
|
7
|
-
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
8
|
-
import { buildEnumTypes, getApiVersionEnum } from "./emitModels.js";
|
|
9
|
-
import { getModularClientOptions } from "../utils/clientUtils.js";
|
|
2
|
+
import { buildGetClientCredentialParam, buildGetClientEndpointParam, buildGetClientOptionsParam, getClientParameterName, getClientParameters, getClientParametersDeclaration, } from "./helpers/clientHelpers.js";
|
|
3
|
+
import { NoTarget } from "@typespec/compiler";
|
|
10
4
|
import { useContext } from "../contextManager.js";
|
|
5
|
+
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
6
|
+
import { resolveReference } from "../framework/reference.js";
|
|
11
7
|
import { refkey } from "../framework/refkey.js";
|
|
12
8
|
import { reportDiagnostic } from "../lib.js";
|
|
13
|
-
import {
|
|
9
|
+
import { getModularClientOptions } from "../utils/clientUtils.js";
|
|
10
|
+
import { buildEnumTypes, getApiVersionEnum } from "./emitModels.js";
|
|
11
|
+
import { getDocsFromDescription } from "./helpers/docsHelpers.js";
|
|
12
|
+
import { getClassicalClientName, getClientName } from "./helpers/namingHelpers.js";
|
|
14
13
|
import { CloudSettingHelpers } from "./static-helpers-metadata.js";
|
|
14
|
+
import { getTypeExpression } from "./type-expressions/get-type-expression.js";
|
|
15
15
|
/**
|
|
16
16
|
* This function gets the path of the file containing the modular client context
|
|
17
17
|
*/
|
|
@@ -35,31 +35,31 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
35
35
|
const requiredParams = getClientParametersDeclaration(client, dpgContext, {
|
|
36
36
|
onClientOnly: false,
|
|
37
37
|
requiredOnly: true,
|
|
38
|
-
apiVersionAsRequired: true
|
|
38
|
+
apiVersionAsRequired: true,
|
|
39
39
|
});
|
|
40
40
|
const clientContextFile = project.createSourceFile(getClientContextPath(clientMap, emitterOptions));
|
|
41
41
|
// Get all client parameters (both required and optional) for the interface
|
|
42
42
|
const requiredInterfaceProperties = getClientParameters(client, dpgContext, {
|
|
43
43
|
onClientOnly: false,
|
|
44
|
-
requiredOnly: true
|
|
44
|
+
requiredOnly: true,
|
|
45
45
|
})
|
|
46
46
|
.filter((p) => {
|
|
47
47
|
const clientParamName = getClientParameterName(p);
|
|
48
|
-
return
|
|
48
|
+
return clientParamName !== "endpointParam" && clientParamName !== "credential";
|
|
49
49
|
})
|
|
50
50
|
.map((p) => {
|
|
51
51
|
return {
|
|
52
52
|
name: getClientParameterName(p),
|
|
53
53
|
type: getTypeExpression(dpgContext, p.type),
|
|
54
54
|
hasQuestionToken: false,
|
|
55
|
-
docs: getDocsWithKnownVersion(dpgContext, p)
|
|
55
|
+
docs: getDocsWithKnownVersion(dpgContext, p),
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
// Collect names of required properties to avoid duplicates
|
|
59
59
|
const requiredPropertyNames = new Set(requiredInterfaceProperties.map((p) => p.name));
|
|
60
60
|
const optionalInterfaceProperties = getClientParameters(client, dpgContext, {
|
|
61
61
|
onClientOnly: false,
|
|
62
|
-
optionalOnly: true
|
|
62
|
+
optionalOnly: true,
|
|
63
63
|
})
|
|
64
64
|
.filter((p) => {
|
|
65
65
|
const clientParamName = getClientParameterName(p);
|
|
@@ -74,7 +74,7 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
74
74
|
name: getClientParameterName(p),
|
|
75
75
|
type: getTypeExpression(dpgContext, p.type),
|
|
76
76
|
hasQuestionToken: true,
|
|
77
|
-
docs: getDocsWithKnownVersion(dpgContext, p)
|
|
77
|
+
docs: getDocsWithKnownVersion(dpgContext, p),
|
|
78
78
|
};
|
|
79
79
|
});
|
|
80
80
|
clientContextFile.addInterface({
|
|
@@ -82,20 +82,18 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
82
82
|
name: `${rlcClientName}`,
|
|
83
83
|
extends: [resolveReference(dependencies.Client)],
|
|
84
84
|
docs: getDocsFromDescription(client.doc),
|
|
85
|
-
properties: [...requiredInterfaceProperties, ...optionalInterfaceProperties]
|
|
85
|
+
properties: [...requiredInterfaceProperties, ...optionalInterfaceProperties],
|
|
86
86
|
});
|
|
87
87
|
const propertiesInOptions = getClientParameters(client, dpgContext, {
|
|
88
|
-
optionalOnly: true
|
|
88
|
+
optionalOnly: true,
|
|
89
89
|
})
|
|
90
90
|
.filter((p) => getClientParameterName(p) !== "endpoint")
|
|
91
91
|
.map((p) => {
|
|
92
92
|
return {
|
|
93
93
|
name: getClientParameterName(p),
|
|
94
|
-
type: p.name.toLowerCase() === "apiversion"
|
|
95
|
-
? "string"
|
|
96
|
-
: getTypeExpression(dpgContext, p.type),
|
|
94
|
+
type: p.name.toLowerCase() === "apiversion" ? "string" : getTypeExpression(dpgContext, p.type),
|
|
97
95
|
hasQuestionToken: true,
|
|
98
|
-
docs: getDocsWithKnownVersion(dpgContext, p)
|
|
96
|
+
docs: getDocsWithKnownVersion(dpgContext, p),
|
|
99
97
|
};
|
|
100
98
|
});
|
|
101
99
|
if (dpgContext.arm) {
|
|
@@ -103,7 +101,7 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
103
101
|
name: "cloudSetting",
|
|
104
102
|
type: `${resolveReference(CloudSettingHelpers.AzureSupportedClouds)}`,
|
|
105
103
|
hasQuestionToken: true,
|
|
106
|
-
docs: [`Specifies the Azure cloud environment for the client.`]
|
|
104
|
+
docs: [`Specifies the Azure cloud environment for the client.`],
|
|
107
105
|
});
|
|
108
106
|
}
|
|
109
107
|
// check if we have duplication options
|
|
@@ -113,7 +111,7 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
113
111
|
reportDiagnostic(dpgContext.program, {
|
|
114
112
|
code: "parameter-name-conflict",
|
|
115
113
|
format: { parameterName: property.name },
|
|
116
|
-
target: NoTarget
|
|
114
|
+
target: NoTarget,
|
|
117
115
|
});
|
|
118
116
|
}
|
|
119
117
|
existingOptionNames.add(property.name);
|
|
@@ -123,14 +121,14 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
123
121
|
isExported: true,
|
|
124
122
|
extends: [resolveReference(dependencies.ClientOptions)],
|
|
125
123
|
properties: propertiesInOptions,
|
|
126
|
-
docs: ["Optional parameters for the client."]
|
|
124
|
+
docs: ["Optional parameters for the client."],
|
|
127
125
|
});
|
|
128
126
|
// TODO use binder here
|
|
129
127
|
// (for now) now logger for unbranded pkgs
|
|
130
128
|
if (isAzurePackage(emitterOptions)) {
|
|
131
129
|
clientContextFile.addImportDeclaration({
|
|
132
130
|
moduleSpecifier: "../".repeat(hierarchy.length + 1) + "logger.js",
|
|
133
|
-
namedImports: ["logger"]
|
|
131
|
+
namedImports: ["logger"],
|
|
134
132
|
});
|
|
135
133
|
}
|
|
136
134
|
const factoryFunction = clientContextFile.addFunction({
|
|
@@ -139,17 +137,15 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
139
137
|
returnType: `${rlcClientName}`,
|
|
140
138
|
parameters: getClientParametersDeclaration(client, dpgContext, {
|
|
141
139
|
onClientOnly: false,
|
|
142
|
-
requiredOnly: true
|
|
140
|
+
requiredOnly: true,
|
|
143
141
|
}),
|
|
144
|
-
isExported: true
|
|
142
|
+
isExported: true,
|
|
145
143
|
});
|
|
146
144
|
const { endpointParamName: endpointParam, assignedOptionalParams } = buildGetClientEndpointParam(factoryFunction, dpgContext, client);
|
|
147
145
|
const credentialParam = buildGetClientCredentialParam(client, emitterOptions);
|
|
148
146
|
// Get api version param early so we can use its name when building options
|
|
149
147
|
const apiVersionParam = getClientParameters(client, dpgContext).find((x) => x.isApiVersionParam);
|
|
150
|
-
const apiVersionParamName = apiVersionParam
|
|
151
|
-
? getClientParameterName(apiVersionParam)
|
|
152
|
-
: undefined;
|
|
148
|
+
const apiVersionParamName = apiVersionParam ? getClientParameterName(apiVersionParam) : undefined;
|
|
153
149
|
const optionsParam = buildGetClientOptionsParam(factoryFunction, emitterOptions, endpointParam, apiVersionParamName);
|
|
154
150
|
factoryFunction.addStatements(`const clientContext = ${resolveReference(dependencies.getClient)}(${endpointParam}, ${credentialParam}, ${optionsParam});`);
|
|
155
151
|
const { customHttpAuthHeaderName, customHttpAuthSharedKeyPrefix } = emitterOptions.options;
|
|
@@ -170,7 +166,7 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
170
166
|
const endpointParameter = getClientParameters(client, dpgContext, {
|
|
171
167
|
onClientOnly: false,
|
|
172
168
|
requiredOnly: true,
|
|
173
|
-
skipEndpointTemplate: true
|
|
169
|
+
skipEndpointTemplate: true,
|
|
174
170
|
}).find((x) => x.kind === "endpoint");
|
|
175
171
|
if (apiVersionParam) {
|
|
176
172
|
const templateArguments = endpointParameter && endpointParameter.type.kind === "endpoint"
|
|
@@ -196,15 +192,13 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
196
192
|
}`;
|
|
197
193
|
}
|
|
198
194
|
factoryFunction.addStatements(apiVersionStatement);
|
|
199
|
-
const contextRequiredParam = requiredParams.filter((p) => p.name !== "endpointParam" &&
|
|
200
|
-
p.name !== "credential" &&
|
|
201
|
-
p.name !== "options");
|
|
195
|
+
const contextRequiredParam = requiredParams.filter((p) => p.name !== "endpointParam" && p.name !== "credential" && p.name !== "options");
|
|
202
196
|
// Collect names of required parameters to avoid duplicates
|
|
203
197
|
const requiredParamNames = new Set(contextRequiredParam.map((p) => p.name));
|
|
204
198
|
// Also include optional parameters from clientInitialization that should be passed through
|
|
205
199
|
const contextOptionalParams = getClientParameters(client, dpgContext, {
|
|
206
200
|
optionalOnly: true,
|
|
207
|
-
onClientOnly: false
|
|
201
|
+
onClientOnly: false,
|
|
208
202
|
}).filter((p) => {
|
|
209
203
|
const clientParamName = getClientParameterName(p);
|
|
210
204
|
return (clientParamName !== "endpointParam" &&
|
|
@@ -225,7 +219,7 @@ export function buildClientContext(dpgContext, clientMap, emitterOptions) {
|
|
|
225
219
|
return clientParamName;
|
|
226
220
|
}
|
|
227
221
|
return `${clientParamName}: options.${clientParamName}`;
|
|
228
|
-
})
|
|
222
|
+
}),
|
|
229
223
|
];
|
|
230
224
|
if (allContextParams.length) {
|
|
231
225
|
factoryFunction.addStatements(`return { ...clientContext, ${allContextParams.join(", ")}} as ${rlcClientName};`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildClientContext.js","sourceRoot":"","sources":["../../../src/modular/buildClientContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildClientContext.js","sourceRoot":"","sources":["../../../src/modular/buildClientContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,4BAA4B,CAAC;AAWpC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,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C;QAC1D,CAAC,CAAC;KACH,CAAC;IAEF,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC5B,eAAe,CAAC,aAAa,CAC3B,8BAA8B,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,aAAa,GAAG,CAClF,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,eAAe,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;IACzD,CAAC;IAED,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,2BAA2B,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/E,iBAAiB,CAAC,oBAAoB,EAAE,CAAC;IACzC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,SAAS,uBAAuB,CAC9B,UAAsB,EACtB,KAA4F;IAE5F,MAAM,IAAI,GAAG,sBAAsB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/C,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,cAAc,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACrD,IAAI,cAAc,EAAE,CAAC;QACnB,MAAM,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,cAAc,CAAC,UAAU,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9E,IAAI,CAAC,IAAI,CACP,0BAA0B,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,6BAA6B,CACrH,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
2
1
|
import { SdkContext } from "../utils/interfaces.js";
|
|
2
|
+
import { ModularEmitterOptions } from "./interfaces.js";
|
|
3
3
|
export declare function transformModularEmitterOptions(dpgContext: SdkContext, modularSourcesRoot: string, options?: {
|
|
4
4
|
casing: "snake" | "camel";
|
|
5
5
|
}): ModularEmitterOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildModularOptions.d.ts","sourceRoot":"","sources":["../../../src/modular/buildModularOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"buildModularOptions.d.ts","sourceRoot":"","sources":["../../../src/modular/buildModularOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAIxD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,GAAE;IAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAA;CAAwB,GAC3D,qBAAqB,CAYvB"}
|
|
@@ -6,8 +6,8 @@ export function transformModularEmitterOptions(dpgContext, modularSourcesRoot, o
|
|
|
6
6
|
modularOptions: {
|
|
7
7
|
sourceRoot: modularSourcesRoot,
|
|
8
8
|
compatibilityMode: !!dpgContext.rlcOptions?.compatibilityMode,
|
|
9
|
-
experimentalExtensibleEnums: !!dpgContext.rlcOptions?.experimentalExtensibleEnums
|
|
10
|
-
}
|
|
9
|
+
experimentalExtensibleEnums: !!dpgContext.rlcOptions?.experimentalExtensibleEnums,
|
|
10
|
+
},
|
|
11
11
|
};
|
|
12
12
|
return emitterOptions;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildModularOptions.js","sourceRoot":"","sources":["../../../src/modular/buildModularOptions.ts"],"names":[],"mappings":"AAGA,IAAI,MAAM,GAAsB,OAAO,CAAC;AAExC,MAAM,UAAU,8BAA8B,CAC5C,UAAsB,EACtB,kBAA0B,EAC1B,UAAyC,EAAE,MAAM,EAAE,OAAO,EAAE;IAE5D,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC;IAClC,MAAM,cAAc,GAA0B;QAC5C,OAAO,EAAE,UAAU,CAAC,UAAU,IAAI,EAAE;QACpC,cAAc,EAAE;YACd,UAAU,EAAE,kBAAkB;YAC9B,iBAAiB,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU,EAAE,iBAAiB;YAC7D,2BAA2B,
|
|
1
|
+
{"version":3,"file":"buildModularOptions.js","sourceRoot":"","sources":["../../../src/modular/buildModularOptions.ts"],"names":[],"mappings":"AAGA,IAAI,MAAM,GAAsB,OAAO,CAAC;AAExC,MAAM,UAAU,8BAA8B,CAC5C,UAAsB,EACtB,kBAA0B,EAC1B,UAAyC,EAAE,MAAM,EAAE,OAAO,EAAE;IAE5D,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC;IAClC,MAAM,cAAc,GAA0B;QAC5C,OAAO,EAAE,UAAU,CAAC,UAAU,IAAI,EAAE;QACpC,cAAc,EAAE;YACd,UAAU,EAAE,kBAAkB;YAC9B,iBAAiB,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU,EAAE,iBAAiB;YAC7D,2BAA2B,EAAE,CAAC,CAAC,UAAU,CAAC,UAAU,EAAE,2BAA2B;SAClF;KACF,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
2
1
|
import { SourceFile } from "ts-morph";
|
|
3
|
-
import {
|
|
4
|
-
import { SdkContext } from "../utils/interfaces.js";
|
|
2
|
+
import { ModularEmitterOptions } from "./interfaces.js";
|
|
5
3
|
import { SdkClientType, SdkServiceOperation } from "@azure-tools/typespec-client-generator-core";
|
|
4
|
+
import { SdkContext } from "../utils/interfaces.js";
|
|
6
5
|
import { ServiceOperation } from "../utils/operationUtil.js";
|
|
6
|
+
import { OperationPathAndDeserDetails } from "./interfaces.js";
|
|
7
7
|
/**
|
|
8
8
|
* This function creates a file under /api for each operation group.
|
|
9
9
|
* If there is no operation group in the TypeSpec program, we create a single
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildOperations.d.ts","sourceRoot":"","sources":["../../../src/modular/buildOperations.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"buildOperations.d.ts","sourceRoot":"","sources":["../../../src/modular/buildOperations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,UAAU,EAAiB,MAAM,UAAU,CAAC;AAapF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EACL,aAAa,EAEb,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAGL,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAG/D;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,EACzD,cAAc,EAAE,qBAAqB,gBAmEtC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,EACpC,UAAU,EAAE,UAAU,QAyEvB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,+CA+C3C"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { NameType, normalizeName } from "../rlc-common/index.js";
|
|
2
1
|
import { StructureKind } from "ts-morph";
|
|
3
|
-
import {
|
|
2
|
+
import { NameType, normalizeName } from "../rlc-common/index.js";
|
|
3
|
+
import { getDeserializeExceptionHeadersPrivateFunction, getDeserializeHeadersPrivateFunction, getDeserializePrivateFunction, getExpectedStatuses, getOperationFunction, getOperationOptionsName, getSendPrivateFunction, isLroAndPagingOperation, isLroOnlyOperation, } from "./helpers/operationHelpers.js";
|
|
4
|
+
import { useContext } from "../contextManager.js";
|
|
5
|
+
import { addDeclaration } from "../framework/declaration.js";
|
|
6
|
+
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
7
|
+
import { resolveReference } from "../framework/reference.js";
|
|
8
|
+
import { refkey } from "../framework/refkey.js";
|
|
9
|
+
import { getModularClientOptions, isRLCMultiEndpoint } from "../utils/clientUtils.js";
|
|
10
|
+
import { getMethodHierarchiesMap, hasDualFormatSupport, } from "../utils/operationUtil.js";
|
|
4
11
|
import { getDocsFromDescription } from "./helpers/docsHelpers.js";
|
|
5
12
|
import { getOperationName } from "./helpers/namingHelpers.js";
|
|
6
|
-
import { getModularClientOptions, isRLCMultiEndpoint } from "../utils/clientUtils.js";
|
|
7
13
|
import { getTypeExpression } from "./type-expressions/get-type-expression.js";
|
|
8
|
-
import { getMethodHierarchiesMap, hasDualFormatSupport } from "../utils/operationUtil.js";
|
|
9
|
-
import { resolveReference } from "../framework/reference.js";
|
|
10
|
-
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
11
|
-
import { addDeclaration } from "../framework/declaration.js";
|
|
12
|
-
import { refkey } from "../framework/refkey.js";
|
|
13
|
-
import { useContext } from "../contextManager.js";
|
|
14
14
|
/**
|
|
15
15
|
* This function creates a file under /api for each operation group.
|
|
16
16
|
* If there is no operation group in the TypeSpec program, we create a single
|
|
@@ -41,13 +41,13 @@ export function buildOperationFiles(dpgContext, clientMap, emitterOptions) {
|
|
|
41
41
|
operations.forEach((op) => {
|
|
42
42
|
const operationDeclaration = getOperationFunction(dpgContext, [prefixes, op], clientType);
|
|
43
43
|
const sendOperationDeclaration = getSendPrivateFunction(dpgContext, [prefixes, op], clientType, client);
|
|
44
|
-
const deserializeOperationDeclaration = getDeserializePrivateFunction(dpgContext, [
|
|
44
|
+
const deserializeOperationDeclaration = getDeserializePrivateFunction(dpgContext, [
|
|
45
|
+
prefixes,
|
|
46
|
+
op,
|
|
47
|
+
]);
|
|
45
48
|
const deserializeHeadersDeclaration = getDeserializeHeadersPrivateFunction(dpgContext, op);
|
|
46
49
|
const deserializeExceptionHeadersDeclaration = getDeserializeExceptionHeadersPrivateFunction(dpgContext, op);
|
|
47
|
-
const functionsToAdd = [
|
|
48
|
-
sendOperationDeclaration,
|
|
49
|
-
deserializeOperationDeclaration
|
|
50
|
-
];
|
|
50
|
+
const functionsToAdd = [sendOperationDeclaration, deserializeOperationDeclaration];
|
|
51
51
|
if (deserializeHeadersDeclaration) {
|
|
52
52
|
functionsToAdd.push(deserializeHeadersDeclaration);
|
|
53
53
|
}
|
|
@@ -60,7 +60,7 @@ export function buildOperationFiles(dpgContext, clientMap, emitterOptions) {
|
|
|
60
60
|
const indexPathPrefix = "../".repeat(prefixKey === "" ? 0 : prefixes.length) || "./";
|
|
61
61
|
operationGroupFile.addImportDeclaration({
|
|
62
62
|
namedImports: [`${rlcClientName} as Client`],
|
|
63
|
-
moduleSpecifier: `${indexPathPrefix}index.js
|
|
63
|
+
moduleSpecifier: `${indexPathPrefix}index.js`,
|
|
64
64
|
});
|
|
65
65
|
operationGroupFile.fixUnusedIdentifiers();
|
|
66
66
|
operationFiles.add(operationGroupFile);
|
|
@@ -75,8 +75,7 @@ export function buildOperationOptions(context, method, sourceFile) {
|
|
|
75
75
|
const operation = method[1];
|
|
76
76
|
const optionalParameters = operation.parameters
|
|
77
77
|
.filter((p) => p.onClient === false &&
|
|
78
|
-
!(p.isGeneratedName &&
|
|
79
|
-
(p.name === "contentType" || p.name !== "accept")))
|
|
78
|
+
!(p.isGeneratedName && (p.name === "contentType" || p.name !== "accept")))
|
|
80
79
|
.filter((p) => p.optional || p.clientDefaultValue);
|
|
81
80
|
const options = [...optionalParameters];
|
|
82
81
|
const name = getOperationOptionsName(method, true);
|
|
@@ -84,7 +83,7 @@ export function buildOperationOptions(context, method, sourceFile) {
|
|
|
84
83
|
name: "updateIntervalInMs",
|
|
85
84
|
type: "number",
|
|
86
85
|
hasQuestionToken: true,
|
|
87
|
-
docs: ["Delay to wait until next poll, in milliseconds."]
|
|
86
|
+
docs: ["Delay to wait until next poll, in milliseconds."],
|
|
88
87
|
};
|
|
89
88
|
// Check if this operation supports both JSON and XML content types
|
|
90
89
|
const bodyContentTypes = operation.operation.bodyParam?.contentTypes ?? [];
|
|
@@ -95,8 +94,8 @@ export function buildOperationOptions(context, method, sourceFile) {
|
|
|
95
94
|
type: "string",
|
|
96
95
|
hasQuestionToken: true,
|
|
97
96
|
docs: [
|
|
98
|
-
'The content type for the request body. Defaults to "application/json". Use "application/xml" for XML serialization.'
|
|
99
|
-
]
|
|
97
|
+
'The content type for the request body. Defaults to "application/json". Use "application/xml" for XML serialization.',
|
|
98
|
+
],
|
|
100
99
|
};
|
|
101
100
|
// handle optional body parameter
|
|
102
101
|
// if (operation.operation.bodyParam?.optional === true) {
|
|
@@ -121,10 +120,10 @@ export function buildOperationOptions(context, method, sourceFile) {
|
|
|
121
120
|
docs: getDocsFromDescription(p.doc),
|
|
122
121
|
hasQuestionToken: true,
|
|
123
122
|
type: getTypeExpression(context, p.type, { isOptional: true }),
|
|
124
|
-
name: normalizeName(p.name, NameType.Parameter)
|
|
123
|
+
name: normalizeName(p.name, NameType.Parameter),
|
|
125
124
|
};
|
|
126
125
|
})),
|
|
127
|
-
docs: [`Optional parameters.`]
|
|
126
|
+
docs: [`Optional parameters.`],
|
|
128
127
|
};
|
|
129
128
|
addDeclaration(sourceFile, operationOptionsInterface, refkey(method[1], "operationOptions"));
|
|
130
129
|
}
|
|
@@ -164,7 +163,7 @@ export function buildLroDeserDetailMap(context, client) {
|
|
|
164
163
|
path: `${o.operation.verb.toUpperCase()} ${o.operation.path}`,
|
|
165
164
|
expectedStatusesExpression: getExpectedStatuses(o),
|
|
166
165
|
deserName,
|
|
167
|
-
renamedDeserName
|
|
166
|
+
renamedDeserName,
|
|
168
167
|
};
|
|
169
168
|
}));
|
|
170
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildOperations.js","sourceRoot":"","sources":["../../../src/modular/buildOperations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildOperations.js","sourceRoot":"","sources":["../../../src/modular/buildOperations.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,aAAa,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,6CAA6C,EAC7C,oCAAoC,EACpC,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAsB,EACtB,SAAyD,EACzD,cAAqC;IAErC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAC5C,MAAM,CAA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cAAc,aAAa,CAChD,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACnD,QAAQ,CAAC,SAAS,CACnB,EAAE,CAAC;gBACJ,gBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;YACnC,CAAC;YACD,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAC7B,OAAO;gBACL,IAAI,EAAE,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE;gBAC7D,0BAA0B,EAAE,mBAAmB,CAAC,CAAC,CAAC;gBAClD,SAAS;gBACT,gBAAgB;aACjB,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
2
1
|
import { SdkContext } from "../utils/interfaces.js";
|
|
2
|
+
import { ModularEmitterOptions } from "./interfaces.js";
|
|
3
3
|
export declare function getModuleExports(context: SdkContext, emitterOptions: ModularEmitterOptions): any;
|
|
4
4
|
//# sourceMappingURL=buildProjectFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildProjectFiles.d.ts","sourceRoot":"","sources":["../../../src/modular/buildProjectFiles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildProjectFiles.d.ts","sourceRoot":"","sources":["../../../src/modular/buildProjectFiles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAyExD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,qBAAqB,OAW1F"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NameType } from "../rlc-common/index.js";
|
|
2
|
-
import
|
|
2
|
+
import path from "path/posix";
|
|
3
|
+
import { useContext } from "../contextManager.js";
|
|
3
4
|
import { getClientHierarchyMap, getModularClientOptions } from "../utils/clientUtils.js";
|
|
4
5
|
import { getMethodHierarchiesMap } from "../utils/operationUtil.js";
|
|
5
|
-
import {
|
|
6
|
-
import path from "path/posix";
|
|
6
|
+
import { getClassicalLayerPrefix } from "./helpers/namingHelpers.js";
|
|
7
7
|
/**
|
|
8
8
|
* Computes the relative path prefix (e.g. `./src` or `./src/generated`) from
|
|
9
9
|
* the project root to the modular sources directory. This prefix is used when
|
|
@@ -30,10 +30,8 @@ function buildExportsForMultiClient(context, emitterOptions, packageInfo) {
|
|
|
30
30
|
}
|
|
31
31
|
const { subfolder } = getModularClientOptions([hierarchy, client]);
|
|
32
32
|
if (subfolder !== "" && methodMap.size > 0) {
|
|
33
|
-
packageInfo.exports[`./${subfolder}`] =
|
|
34
|
-
|
|
35
|
-
packageInfo.exports[`./${subfolder}/api`] =
|
|
36
|
-
`${srcPrefix}/${subfolder}/api/index.ts`;
|
|
33
|
+
packageInfo.exports[`./${subfolder}`] = `${srcPrefix}/${subfolder}/index.ts`;
|
|
34
|
+
packageInfo.exports[`./${subfolder}/api`] = `${srcPrefix}/${subfolder}/api/index.ts`;
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
37
|
if (!hasTopLevelClient) {
|
|
@@ -71,8 +69,8 @@ export function getModuleExports(context, emitterOptions) {
|
|
|
71
69
|
const exports = {
|
|
72
70
|
exports: {
|
|
73
71
|
".": `${srcPrefix}/index.ts`,
|
|
74
|
-
"./models": `${srcPrefix}/models/index.ts
|
|
75
|
-
}
|
|
72
|
+
"./models": `${srcPrefix}/models/index.ts`,
|
|
73
|
+
},
|
|
76
74
|
};
|
|
77
75
|
exports["exports"]["./api"] = `${srcPrefix}/api/index.ts`;
|
|
78
76
|
return buildExportsForMultiClient(context, emitterOptions, exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildProjectFiles.js","sourceRoot":"","sources":["../../../src/modular/buildProjectFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"buildProjectFiles.js","sourceRoot":"","sources":["../../../src/modular/buildProjectFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAGrE;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,cAAqC,EAAE,OAAmB;IACrF,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAChF,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAElF,IAAI,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9C,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC5E,OAAO,KAAK,YAAY,EAAE,CAAC;IAC7B,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAmB,EACnB,cAAqC,EACrC,WAAgB;IAEhB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SAAS,kBAAkB;SAC3C;KACF,CAAC;IACF,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,SAAS,eAAe,CAAC;IAE1D,OAAO,0BAA0B,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACtE,CAAC;AAED,SAAS,gBAAgB,CAAC,cAAqC;IAC7D,MAAM,aAAa,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,aAAa,CAAC,cAAc,CAC7C,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,gBAAgB,CAAC,CAC1F,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACnC,SAAS;QACX,CAAC;QACD,OAAO,CAAC,GAAG,CACT,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,CACtF,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
2
1
|
import { SdkClientType, SdkServiceOperation } from "@azure-tools/typespec-client-generator-core";
|
|
3
2
|
import { SdkContext } from "../utils/interfaces.js";
|
|
3
|
+
import { ModularEmitterOptions } from "./interfaces.js";
|
|
4
4
|
export declare function buildRestorePoller(context: SdkContext, clientMap: [string[], SdkClientType<SdkServiceOperation>], emitterOptions: ModularEmitterOptions): void;
|
|
5
5
|
//# sourceMappingURL=buildRestorePoller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRestorePoller.d.ts","sourceRoot":"","sources":["../../../src/modular/buildRestorePoller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildRestorePoller.d.ts","sourceRoot":"","sources":["../../../src/modular/buildRestorePoller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAQjG,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,EACzD,cAAc,EAAE,qBAAqB,QAsLtC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { isLroOnlyOperation } from "./helpers/operationHelpers.js";
|
|
2
1
|
import path from "path";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { NameType, normalizeName } from "../rlc-common/index.js";
|
|
2
|
+
import { useContext } from "../contextManager.js";
|
|
3
|
+
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
6
4
|
import { resolveReference } from "../framework/reference.js";
|
|
5
|
+
import { NameType, normalizeName } from "../rlc-common/index.js";
|
|
6
|
+
import { getModularClientOptions } from "../utils/clientUtils.js";
|
|
7
|
+
import { getMethodHierarchiesMap } from "../utils/operationUtil.js";
|
|
8
|
+
import { buildLroDeserDetailMap } from "./buildOperations.js";
|
|
7
9
|
import { AzurePollingDependencies } from "./external-dependencies.js";
|
|
10
|
+
import { getClassicalClientName } from "./helpers/namingHelpers.js";
|
|
11
|
+
import { isLroOnlyOperation } from "./helpers/operationHelpers.js";
|
|
8
12
|
import { PollingHelpers } from "./static-helpers-metadata.js";
|
|
9
|
-
import { getMethodHierarchiesMap } from "../utils/operationUtil.js";
|
|
10
|
-
import { getModularClientOptions } from "../utils/clientUtils.js";
|
|
11
|
-
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
12
|
-
import { useContext } from "../contextManager.js";
|
|
13
13
|
export function buildRestorePoller(context, clientMap, emitterOptions) {
|
|
14
14
|
const project = useContext("outputProject");
|
|
15
15
|
const [_, client] = clientMap;
|
|
@@ -25,7 +25,7 @@ export function buildRestorePoller(context, clientMap, emitterOptions) {
|
|
|
25
25
|
const srcPath = emitterOptions.modularOptions.sourceRoot;
|
|
26
26
|
const filePath = path.join(`${srcPath}/${subfolder && subfolder !== "" ? subfolder + "/" : ""}restorePollerHelpers.ts`);
|
|
27
27
|
const restorePollerFile = project.createSourceFile(filePath, undefined, {
|
|
28
|
-
overwrite: true
|
|
28
|
+
overwrite: true,
|
|
29
29
|
});
|
|
30
30
|
const clientNames = importClassicalClient(client, restorePollerFile);
|
|
31
31
|
const deserializeMap = importDeserializeHelpers(context, client, restorePollerFile);
|
|
@@ -197,7 +197,7 @@ function importDeserializeHelpers(context, client, sourceFile) {
|
|
|
197
197
|
namedImports: value.map((detail) => detail.renamedDeserName
|
|
198
198
|
? `${detail.deserName} as ${detail.renamedDeserName}`
|
|
199
199
|
: detail.deserName),
|
|
200
|
-
moduleSpecifier: key
|
|
200
|
+
moduleSpecifier: key,
|
|
201
201
|
});
|
|
202
202
|
value.forEach((detail) => {
|
|
203
203
|
deserializeMap.push(`"${detail.path}": { deserializer: ${detail.renamedDeserName ?? detail.deserName}, expectedStatuses: ${detail.expectedStatusesExpression} }`);
|
|
@@ -209,7 +209,7 @@ function importClassicalClient(client, sourceFile) {
|
|
|
209
209
|
const classicalClientName = `${getClassicalClientName(client)}`;
|
|
210
210
|
sourceFile.addImportDeclaration({
|
|
211
211
|
namedImports: [`${classicalClientName}`],
|
|
212
|
-
moduleSpecifier: `./${normalizeName(classicalClientName, NameType.File)}.js
|
|
212
|
+
moduleSpecifier: `./${normalizeName(classicalClientName, NameType.File)}.js`,
|
|
213
213
|
});
|
|
214
214
|
return [classicalClientName];
|
|
215
215
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRestorePoller.js","sourceRoot":"","sources":["../../../src/modular/buildRestorePoller.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"buildRestorePoller.js","sourceRoot":"","sources":["../../../src/modular/buildRestorePoller.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,UAAU,kBAAkB,CAChC,OAAmB,EACnB,SAAyD,EACzD,cAAqC;IAErC,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAC5C,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9B,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,MAAM,EAAE,S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KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACvB,cAAc,CAAC,IAAI,CACjB,IAAI,MAAM,CAAC,IAAI,sBACb,MAAM,CAAC,gBAAgB,IAAI,MAAM,CAAC,SACpC,uBAAuB,MAAM,CAAC,0BAA0B,IAAI,CAC7D,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,SAAS,qBAAqB,CAC5B,MAA0C,EAC1C,UAAsB;IAEtB,MAAM,mBAAmB,GAAG,GAAG,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;IAChE,UAAU,CAAC,oBAAoB,CAAC;QAC9B,YAAY,EAAE,CAAC,GAAG,mBAAmB,EAAE,CAAC;QACxC,eAAe,EAAE,KAAK,aAAa,CAAC,mBAAmB,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK;KAC7E,CAAC,CAAC;IACH,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SourceFile } from "ts-morph";
|
|
2
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
3
1
|
import { SdkClientType, SdkServiceOperation } from "@azure-tools/typespec-client-generator-core";
|
|
2
|
+
import { SourceFile } from "ts-morph";
|
|
4
3
|
import { SdkContext } from "../utils/interfaces.js";
|
|
4
|
+
import { ModularEmitterOptions } from "./interfaces.js";
|
|
5
5
|
export declare function buildRootIndex(context: SdkContext, emitterOptions: ModularEmitterOptions, rootIndexFile: SourceFile, clientMap?: [string[], SdkClientType<SdkServiceOperation>]): void;
|
|
6
6
|
export interface ExportModulesOptions {
|
|
7
7
|
interfaceOnly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRootIndex.d.ts","sourceRoot":"","sources":["../../../src/modular/buildRootIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildRootIndex.d.ts","sourceRoot":"","sources":["../../../src/modular/buildRootIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAGjG,OAAO,EAAW,UAAU,EAAE,MAAM,UAAU,CAAC;AAM/C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAQxD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,UAAU,EACnB,cAAc,EAAE,qBAAqB,EACrC,aAAa,EAAE,UAAU,EACzB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,QAiD3D;AAsMD,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAsFD,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,EACzD,cAAc,EAAE,qBAAqB,QAuCtC"}
|