@azure-tools/typespec-ts 0.55.0-dev.1 → 0.55.0-dev.2
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/context-manager.d.ts +75 -0
- package/dist/src/context-manager.d.ts.map +1 -0
- package/dist/src/context-manager.js +59 -0
- package/dist/src/context-manager.js.map +1 -0
- package/dist/src/framework/hooks/binder.js +3 -3
- package/dist/src/framework/hooks/binder.js.map +1 -1
- package/dist/src/framework/hooks/sdk-types.d.ts +26 -0
- package/dist/src/framework/hooks/sdk-types.d.ts.map +1 -0
- package/dist/src/framework/hooks/sdk-types.js +157 -0
- package/dist/src/framework/hooks/sdk-types.js.map +1 -0
- package/dist/src/framework/hooks/use-dependencies.d.ts +4 -0
- package/dist/src/framework/hooks/use-dependencies.d.ts.map +1 -0
- package/dist/src/framework/hooks/use-dependencies.js +13 -0
- package/dist/src/framework/hooks/use-dependencies.js.map +1 -0
- package/dist/src/index.js +23 -23
- package/dist/src/index.js.map +1 -1
- package/dist/src/meta-tree.d.ts +7 -0
- package/dist/src/meta-tree.d.ts.map +1 -0
- package/dist/src/meta-tree.js +2 -0
- package/dist/src/meta-tree.js.map +1 -0
- package/dist/src/modular/build-classical-client.d.ts +6 -0
- package/dist/src/modular/build-classical-client.d.ts.map +1 -0
- package/dist/src/modular/build-classical-client.js +345 -0
- package/dist/src/modular/build-classical-client.js.map +1 -0
- package/dist/src/modular/build-classical-operation-groups.d.ts +6 -0
- package/dist/src/modular/build-classical-operation-groups.d.ts.map +1 -0
- package/dist/src/modular/build-classical-operation-groups.js +48 -0
- package/dist/src/modular/build-classical-operation-groups.js.map +1 -0
- package/dist/src/modular/build-client-context.d.ts +13 -0
- package/dist/src/modular/build-client-context.d.ts.map +1 -0
- package/dist/src/modular/build-client-context.js +246 -0
- package/dist/src/modular/build-client-context.js.map +1 -0
- package/dist/src/modular/build-modular-options.d.ts +6 -0
- package/dist/src/modular/build-modular-options.d.ts.map +1 -0
- package/dist/src/modular/build-modular-options.js +14 -0
- package/dist/src/modular/build-modular-options.js.map +1 -0
- package/dist/src/modular/build-operations.d.ts +21 -0
- package/dist/src/modular/build-operations.d.ts.map +1 -0
- package/dist/src/modular/build-operations.js +172 -0
- package/dist/src/modular/build-operations.js.map +1 -0
- package/dist/src/modular/build-project-files.d.ts +4 -0
- package/dist/src/modular/build-project-files.d.ts.map +1 -0
- package/dist/src/modular/build-project-files.js +91 -0
- package/dist/src/modular/build-project-files.js.map +1 -0
- package/dist/src/modular/build-restore-poller.d.ts +5 -0
- package/dist/src/modular/build-restore-poller.d.ts.map +1 -0
- package/dist/src/modular/build-restore-poller.js +216 -0
- package/dist/src/modular/build-restore-poller.js.map +1 -0
- package/dist/src/modular/build-root-index.d.ts +13 -0
- package/dist/src/modular/build-root-index.d.ts.map +1 -0
- package/dist/src/modular/build-root-index.js +279 -0
- package/dist/src/modular/build-root-index.js.map +1 -0
- package/dist/src/modular/build-subpath-index.d.ts +16 -0
- package/dist/src/modular/build-subpath-index.d.ts.map +1 -0
- package/dist/src/modular/build-subpath-index.js +119 -0
- package/dist/src/modular/build-subpath-index.js.map +1 -0
- package/dist/src/modular/emit-logger-file.d.ts +3 -0
- package/dist/src/modular/emit-logger-file.d.ts.map +1 -0
- package/dist/src/modular/emit-logger-file.js +18 -0
- package/dist/src/modular/emit-logger-file.js.map +1 -0
- package/dist/src/modular/emit-models-options.d.ts +5 -0
- package/dist/src/modular/emit-models-options.d.ts.map +1 -0
- package/dist/src/modular/emit-models-options.js +35 -0
- package/dist/src/modular/emit-models-options.js.map +1 -0
- package/dist/src/modular/emit-models.d.ts +23 -0
- package/dist/src/modular/emit-models.d.ts.map +1 -0
- package/dist/src/modular/emit-models.js +850 -0
- package/dist/src/modular/emit-models.js.map +1 -0
- package/dist/src/modular/emit-samples.d.ts +7 -0
- package/dist/src/modular/emit-samples.d.ts.map +1 -0
- package/dist/src/modular/emit-samples.js +500 -0
- package/dist/src/modular/emit-samples.js.map +1 -0
- package/dist/src/modular/emit-tests.d.ts +7 -0
- package/dist/src/modular/emit-tests.d.ts.map +1 -0
- package/dist/src/modular/emit-tests.js +155 -0
- package/dist/src/modular/emit-tests.js.map +1 -0
- package/dist/src/modular/helpers/classical-operation-helpers.d.ts +7 -0
- package/dist/src/modular/helpers/classical-operation-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/classical-operation-helpers.js +258 -0
- package/dist/src/modular/helpers/classical-operation-helpers.js.map +1 -0
- package/dist/src/modular/helpers/client-helpers.d.ts +34 -0
- package/dist/src/modular/helpers/client-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/client-helpers.js +259 -0
- package/dist/src/modular/helpers/client-helpers.js.map +1 -0
- package/dist/src/modular/helpers/client-option-helpers.d.ts +43 -0
- package/dist/src/modular/helpers/client-option-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/client-option-helpers.js +103 -0
- package/dist/src/modular/helpers/client-option-helpers.js.map +1 -0
- package/dist/src/modular/helpers/docs-helpers.d.ts +3 -0
- package/dist/src/modular/helpers/docs-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/docs-helpers.js +10 -0
- package/dist/src/modular/helpers/docs-helpers.js.map +1 -0
- package/dist/src/modular/helpers/example-value-helpers.d.ts +83 -0
- package/dist/src/modular/helpers/example-value-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/example-value-helpers.js +639 -0
- package/dist/src/modular/helpers/example-value-helpers.js.map +1 -0
- package/dist/src/modular/helpers/naming-helpers.d.ts +22 -0
- package/dist/src/modular/helpers/naming-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/naming-helpers.js +59 -0
- package/dist/src/modular/helpers/naming-helpers.js.map +1 -0
- package/dist/src/modular/helpers/operation-helpers.d.ts +105 -0
- package/dist/src/modular/helpers/operation-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/operation-helpers.js +2328 -0
- package/dist/src/modular/helpers/operation-helpers.js.map +1 -0
- package/dist/src/modular/helpers/type-helpers.d.ts +22 -0
- package/dist/src/modular/helpers/type-helpers.d.ts.map +1 -0
- package/dist/src/modular/helpers/type-helpers.js +94 -0
- package/dist/src/modular/helpers/type-helpers.js.map +1 -0
- package/dist/src/modular/serialization/build-deserializer-function.d.ts +7 -0
- package/dist/src/modular/serialization/build-deserializer-function.d.ts.map +1 -0
- package/dist/src/modular/serialization/build-deserializer-function.js +401 -0
- package/dist/src/modular/serialization/build-deserializer-function.js.map +1 -0
- package/dist/src/modular/serialization/build-serializer-function.d.ts +7 -0
- package/dist/src/modular/serialization/build-serializer-function.d.ts.map +1 -0
- package/dist/src/modular/serialization/build-serializer-function.js +442 -0
- package/dist/src/modular/serialization/build-serializer-function.js.map +1 -0
- package/dist/src/modular/serialization/build-xml-serializer-function.d.ts +44 -0
- package/dist/src/modular/serialization/build-xml-serializer-function.d.ts.map +1 -0
- package/dist/src/modular/serialization/build-xml-serializer-function.js +729 -0
- package/dist/src/modular/serialization/build-xml-serializer-function.js.map +1 -0
- package/dist/src/modular/serialization/serialize-utils.d.ts +37 -0
- package/dist/src/modular/serialization/serialize-utils.d.ts.map +1 -0
- package/dist/src/modular/serialization/serialize-utils.js +145 -0
- package/dist/src/modular/serialization/serialize-utils.js.map +1 -0
- 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-model-expression.js +1 -1
- package/dist/src/modular/type-expressions/get-model-expression.js.map +1 -1
- package/dist/src/rlc-common/build-client-definitions.d.ts +6 -0
- package/dist/src/rlc-common/build-client-definitions.d.ts.map +1 -0
- package/dist/src/rlc-common/build-client-definitions.js +157 -0
- package/dist/src/rlc-common/build-client-definitions.js.map +1 -0
- package/dist/src/rlc-common/build-client.d.ts +9 -0
- package/dist/src/rlc-common/build-client.d.ts.map +1 -0
- package/dist/src/rlc-common/build-client.js +391 -0
- package/dist/src/rlc-common/build-client.js.map +1 -0
- package/dist/src/rlc-common/build-index-file.d.ts +6 -0
- package/dist/src/rlc-common/build-index-file.d.ts.map +1 -0
- package/dist/src/rlc-common/build-index-file.js +241 -0
- package/dist/src/rlc-common/build-index-file.js.map +1 -0
- package/dist/src/rlc-common/build-is-unexpected-helper.d.ts +6 -0
- package/dist/src/rlc-common/build-is-unexpected-helper.d.ts.map +1 -0
- package/dist/src/rlc-common/build-is-unexpected-helper.js +223 -0
- package/dist/src/rlc-common/build-is-unexpected-helper.js.map +1 -0
- package/dist/src/rlc-common/build-logger.d.ts +6 -0
- package/dist/src/rlc-common/build-logger.d.ts.map +1 -0
- package/dist/src/rlc-common/build-logger.js +31 -0
- package/dist/src/rlc-common/build-logger.js.map +1 -0
- package/dist/src/rlc-common/build-method-shortcuts.d.ts +5 -0
- package/dist/src/rlc-common/build-method-shortcuts.d.ts.map +1 -0
- package/dist/src/rlc-common/build-method-shortcuts.js +54 -0
- package/dist/src/rlc-common/build-method-shortcuts.js.map +1 -0
- package/dist/src/rlc-common/build-object-types.d.ts +29 -0
- package/dist/src/rlc-common/build-object-types.d.ts.map +1 -0
- package/dist/src/rlc-common/build-object-types.js +412 -0
- package/dist/src/rlc-common/build-object-types.js.map +1 -0
- package/dist/src/rlc-common/build-paginate-helper.d.ts +6 -0
- package/dist/src/rlc-common/build-paginate-helper.d.ts.map +1 -0
- package/dist/src/rlc-common/build-paginate-helper.js +27 -0
- package/dist/src/rlc-common/build-paginate-helper.js.map +1 -0
- package/dist/src/rlc-common/build-parameter-types.d.ts +14 -0
- package/dist/src/rlc-common/build-parameter-types.d.ts.map +1 -0
- package/dist/src/rlc-common/build-parameter-types.js +391 -0
- package/dist/src/rlc-common/build-parameter-types.js.map +1 -0
- package/dist/src/rlc-common/build-polling-helper.d.ts +6 -0
- package/dist/src/rlc-common/build-polling-helper.d.ts.map +1 -0
- package/dist/src/rlc-common/build-polling-helper.js +61 -0
- package/dist/src/rlc-common/build-polling-helper.js.map +1 -0
- package/dist/src/rlc-common/build-response-types.d.ts +6 -0
- package/dist/src/rlc-common/build-response-types.d.ts.map +1 -0
- package/dist/src/rlc-common/build-response-types.js +143 -0
- package/dist/src/rlc-common/build-response-types.js.map +1 -0
- package/dist/src/rlc-common/build-samples.d.ts +3 -0
- package/dist/src/rlc-common/build-samples.d.ts.map +1 -0
- package/dist/src/rlc-common/build-samples.js +30 -0
- package/dist/src/rlc-common/build-samples.js.map +1 -0
- package/dist/src/rlc-common/build-schema-type.d.ts +20 -0
- package/dist/src/rlc-common/build-schema-type.d.ts.map +1 -0
- package/dist/src/rlc-common/build-schema-type.js +71 -0
- package/dist/src/rlc-common/build-schema-type.js.map +1 -0
- package/dist/src/rlc-common/build-serialize-helper.d.ts +6 -0
- package/dist/src/rlc-common/build-serialize-helper.d.ts.map +1 -0
- package/dist/src/rlc-common/build-serialize-helper.js +36 -0
- package/dist/src/rlc-common/build-serialize-helper.js.map +1 -0
- package/dist/src/rlc-common/build-top-level-index-file.d.ts +6 -0
- package/dist/src/rlc-common/build-top-level-index-file.d.ts.map +1 -0
- package/dist/src/rlc-common/build-top-level-index-file.js +48 -0
- package/dist/src/rlc-common/build-top-level-index-file.js.map +1 -0
- package/dist/src/rlc-common/helpers/api-version-util.d.ts +17 -0
- package/dist/src/rlc-common/helpers/api-version-util.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/api-version-util.js +43 -0
- package/dist/src/rlc-common/helpers/api-version-util.js.map +1 -0
- package/dist/src/rlc-common/helpers/imports-util.d.ts +18 -0
- package/dist/src/rlc-common/helpers/imports-util.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/imports-util.js +164 -0
- package/dist/src/rlc-common/helpers/imports-util.js.map +1 -0
- package/dist/src/rlc-common/helpers/name-constructors.d.ts +42 -0
- package/dist/src/rlc-common/helpers/name-constructors.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/name-constructors.js +61 -0
- package/dist/src/rlc-common/helpers/name-constructors.js.map +1 -0
- package/dist/src/rlc-common/helpers/name-utils.d.ts +37 -0
- package/dist/src/rlc-common/helpers/name-utils.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/name-utils.js +240 -0
- package/dist/src/rlc-common/helpers/name-utils.js.map +1 -0
- package/dist/src/rlc-common/helpers/operation-helpers.d.ts +16 -0
- package/dist/src/rlc-common/helpers/operation-helpers.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/operation-helpers.js +104 -0
- package/dist/src/rlc-common/helpers/operation-helpers.js.map +1 -0
- package/dist/src/rlc-common/helpers/package-util.d.ts +7 -0
- package/dist/src/rlc-common/helpers/package-util.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/package-util.js +10 -0
- package/dist/src/rlc-common/helpers/package-util.js.map +1 -0
- package/dist/src/rlc-common/helpers/path-utils.d.ts +2 -0
- package/dist/src/rlc-common/helpers/path-utils.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/path-utils.js +10 -0
- package/dist/src/rlc-common/helpers/path-utils.js.map +1 -0
- package/dist/src/rlc-common/helpers/schema-helpers.d.ts +10 -0
- package/dist/src/rlc-common/helpers/schema-helpers.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/schema-helpers.js +37 -0
- package/dist/src/rlc-common/helpers/schema-helpers.js.map +1 -0
- package/dist/src/rlc-common/helpers/shortcut-methods.d.ts +4 -0
- package/dist/src/rlc-common/helpers/shortcut-methods.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/shortcut-methods.js +49 -0
- package/dist/src/rlc-common/helpers/shortcut-methods.js.map +1 -0
- package/dist/src/rlc-common/helpers/type-util.d.ts +32 -0
- package/dist/src/rlc-common/helpers/type-util.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/type-util.js +162 -0
- package/dist/src/rlc-common/helpers/type-util.js.map +1 -0
- package/dist/src/rlc-common/helpers/value-generation-util.d.ts +12 -0
- package/dist/src/rlc-common/helpers/value-generation-util.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/value-generation-util.js +161 -0
- package/dist/src/rlc-common/helpers/value-generation-util.js.map +1 -0
- package/dist/src/rlc-common/index.d.ts +39 -39
- package/dist/src/rlc-common/index.d.ts.map +1 -1
- package/dist/src/rlc-common/index.js +39 -39
- package/dist/src/rlc-common/index.js.map +1 -1
- package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts +6 -0
- package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-api-extractor-config.js +55 -0
- package/dist/src/rlc-common/metadata/build-api-extractor-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-changelog-file.d.ts +6 -0
- package/dist/src/rlc-common/metadata/build-changelog-file.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-changelog-file.js +25 -0
- package/dist/src/rlc-common/metadata/build-changelog-file.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts +6 -0
- package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-es-lint-config.js +79 -0
- package/dist/src/rlc-common/metadata/build-es-lint-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-license-file.d.ts +5 -0
- package/dist/src/rlc-common/metadata/build-license-file.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-license-file.js +32 -0
- package/dist/src/rlc-common/metadata/build-license-file.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-package-file.d.ts +25 -0
- package/dist/src/rlc-common/metadata/build-package-file.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-package-file.js +197 -0
- package/dist/src/rlc-common/metadata/build-package-file.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-readme-file.d.ts +11 -0
- package/dist/src/rlc-common/metadata/build-readme-file.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-readme-file.js +418 -0
- package/dist/src/rlc-common/metadata/build-readme-file.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-rollup-config.d.ts +6 -0
- package/dist/src/rlc-common/metadata/build-rollup-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-rollup-config.js +140 -0
- package/dist/src/rlc-common/metadata/build-rollup-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-sample-env-file.d.ts +6 -0
- package/dist/src/rlc-common/metadata/build-sample-env-file.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-sample-env-file.js +15 -0
- package/dist/src/rlc-common/metadata/build-sample-env-file.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-test-config.d.ts +16 -0
- package/dist/src/rlc-common/metadata/build-test-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-test-config.js +54 -0
- package/dist/src/rlc-common/metadata/build-test-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-ts-config.d.ts +61 -0
- package/dist/src/rlc-common/metadata/build-ts-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-ts-config.js +170 -0
- package/dist/src/rlc-common/metadata/build-ts-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-vitest-config.d.ts +6 -0
- package/dist/src/rlc-common/metadata/build-vitest-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-vitest-config.js +26 -0
- package/dist/src/rlc-common/metadata/build-vitest-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/build-warp-config.d.ts +20 -0
- package/dist/src/rlc-common/metadata/build-warp-config.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/build-warp-config.js +76 -0
- package/dist/src/rlc-common/metadata/build-warp-config.js.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts +51 -0
- package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/azure-package-common.js +121 -0
- package/dist/src/rlc-common/metadata/package-json/azure-package-common.js.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts +242 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js +171 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.d.ts +8 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.js +101 -0
- package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.js.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.d.ts +57 -0
- package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.js +53 -0
- package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.js.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/package-common.d.ts +64 -0
- package/dist/src/rlc-common/metadata/package-json/package-common.d.ts.map +1 -0
- package/dist/src/rlc-common/metadata/package-json/package-common.js +180 -0
- package/dist/src/rlc-common/metadata/package-json/package-common.js.map +1 -0
- package/dist/src/rlc-common/static/paginate-content.d.ts +2 -0
- package/dist/src/rlc-common/static/paginate-content.d.ts.map +1 -0
- package/dist/src/rlc-common/static/paginate-content.js +345 -0
- package/dist/src/rlc-common/static/paginate-content.js.map +1 -0
- package/dist/src/rlc-common/static/polling-content.d.ts +2 -0
- package/dist/src/rlc-common/static/polling-content.d.ts.map +1 -0
- package/dist/src/rlc-common/static/polling-content.js +225 -0
- package/dist/src/rlc-common/static/polling-content.js.map +1 -0
- package/dist/src/rlc-common/static/sample-template.d.ts +2 -0
- package/dist/src/rlc-common/static/sample-template.d.ts.map +1 -0
- package/dist/src/rlc-common/static/sample-template.js +56 -0
- package/dist/src/rlc-common/static/sample-template.js.map +1 -0
- package/dist/src/rlc-common/static/serialize-helper.d.ts +6 -0
- package/dist/src/rlc-common/static/serialize-helper.d.ts.map +1 -0
- package/dist/src/rlc-common/static/serialize-helper.js +31 -0
- package/dist/src/rlc-common/static/serialize-helper.js.map +1 -0
- package/dist/src/rlc-common/test/build-karma-config.d.ts +6 -0
- package/dist/src/rlc-common/test/build-karma-config.d.ts.map +1 -0
- package/dist/src/rlc-common/test/build-karma-config.js +11 -0
- package/dist/src/rlc-common/test/build-karma-config.js.map +1 -0
- package/dist/src/rlc-common/test/build-recorded-client.d.ts +6 -0
- package/dist/src/rlc-common/test/build-recorded-client.d.ts.map +1 -0
- package/dist/src/rlc-common/test/build-recorded-client.js +17 -0
- package/dist/src/rlc-common/test/build-recorded-client.js.map +1 -0
- package/dist/src/rlc-common/test/build-sample-test.d.ts +6 -0
- package/dist/src/rlc-common/test/build-sample-test.d.ts.map +1 -0
- package/dist/src/rlc-common/test/build-sample-test.js +14 -0
- package/dist/src/rlc-common/test/build-sample-test.js.map +1 -0
- package/dist/src/rlc-common/test/build-snippets.d.ts +6 -0
- package/dist/src/rlc-common/test/build-snippets.d.ts.map +1 -0
- package/dist/src/rlc-common/test/build-snippets.js +26 -0
- package/dist/src/rlc-common/test/build-snippets.js.map +1 -0
- package/dist/src/rlc-common/transform-sample-groups.d.ts +9 -0
- package/dist/src/rlc-common/transform-sample-groups.d.ts.map +1 -0
- package/dist/src/rlc-common/transform-sample-groups.js +313 -0
- package/dist/src/rlc-common/transform-sample-groups.js.map +1 -0
- package/dist/src/transform/transform-api-version-info.d.ts +6 -0
- package/dist/src/transform/transform-api-version-info.d.ts.map +1 -0
- package/dist/src/transform/transform-api-version-info.js +78 -0
- package/dist/src/transform/transform-api-version-info.js.map +1 -0
- package/dist/src/transform/transform-helper-function-details.d.ts +5 -0
- package/dist/src/transform/transform-helper-function-details.d.ts.map +1 -0
- package/dist/src/transform/transform-helper-function-details.js +74 -0
- package/dist/src/transform/transform-helper-function-details.js.map +1 -0
- package/dist/src/transform/transform-parameters.d.ts +14 -0
- package/dist/src/transform/transform-parameters.d.ts.map +1 -0
- package/dist/src/transform/transform-parameters.js +201 -0
- package/dist/src/transform/transform-parameters.js.map +1 -0
- package/dist/src/transform/transform-paths.d.ts +5 -0
- package/dist/src/transform/transform-paths.d.ts.map +1 -0
- package/dist/src/transform/transform-paths.js +102 -0
- package/dist/src/transform/transform-paths.js.map +1 -0
- package/dist/src/transform/transform-responses.d.ts +5 -0
- package/dist/src/transform/transform-responses.d.ts.map +1 -0
- package/dist/src/transform/transform-responses.js +171 -0
- package/dist/src/transform/transform-responses.js.map +1 -0
- package/dist/src/transform/transform-schemas.d.ts +4 -0
- package/dist/src/transform/transform-schemas.d.ts.map +1 -0
- package/dist/src/transform/transform-schemas.js +191 -0
- package/dist/src/transform/transform-schemas.js.map +1 -0
- package/dist/src/transform/transform-telemetry-info.d.ts +4 -0
- package/dist/src/transform/transform-telemetry-info.d.ts.map +1 -0
- package/dist/src/transform/transform-telemetry-info.js +22 -0
- package/dist/src/transform/transform-telemetry-info.js.map +1 -0
- package/dist/src/transform/transform.js +10 -10
- package/dist/src/transform/transform.js.map +1 -1
- package/dist/src/transform/transfrom-rlc-options.d.ts +14 -0
- package/dist/src/transform/transfrom-rlc-options.d.ts.map +1 -0
- package/dist/src/transform/transfrom-rlc-options.js +369 -0
- package/dist/src/transform/transfrom-rlc-options.js.map +1 -0
- package/dist/src/utils/client-utils.d.ts +10 -0
- package/dist/src/utils/client-utils.d.ts.map +1 -0
- package/dist/src/utils/client-utils.js +124 -0
- package/dist/src/utils/client-utils.js.map +1 -0
- package/dist/src/utils/credential-utils.d.ts +15 -0
- package/dist/src/utils/credential-utils.d.ts.map +1 -0
- package/dist/src/utils/credential-utils.js +68 -0
- package/dist/src/utils/credential-utils.js.map +1 -0
- package/dist/src/utils/cross-language-def.d.ts +6 -0
- package/dist/src/utils/cross-language-def.d.ts.map +1 -0
- package/dist/src/utils/cross-language-def.js +59 -0
- package/dist/src/utils/cross-language-def.js.map +1 -0
- package/dist/src/utils/emit-util.d.ts +5 -0
- package/dist/src/utils/emit-util.d.ts.map +1 -0
- package/dist/src/utils/emit-util.js +71 -0
- package/dist/src/utils/emit-util.js.map +1 -0
- package/dist/src/utils/file-system-utils.d.ts +5 -0
- package/dist/src/utils/file-system-utils.d.ts.map +1 -0
- package/dist/src/utils/file-system-utils.js +59 -0
- package/dist/src/utils/file-system-utils.js.map +1 -0
- package/dist/src/utils/import-helper.d.ts +10 -0
- package/dist/src/utils/import-helper.d.ts.map +1 -0
- package/dist/src/utils/import-helper.js +51 -0
- package/dist/src/utils/import-helper.js.map +1 -0
- package/dist/src/utils/interfaces.d.ts +1 -1
- package/dist/src/utils/interfaces.d.ts.map +1 -1
- package/dist/src/utils/media-types.d.ts +28 -0
- package/dist/src/utils/media-types.d.ts.map +1 -0
- package/dist/src/utils/media-types.js +124 -0
- package/dist/src/utils/media-types.js.map +1 -0
- package/dist/src/utils/model-utils.d.ts +60 -0
- package/dist/src/utils/model-utils.d.ts.map +1 -0
- package/dist/src/utils/model-utils.js +1480 -0
- package/dist/src/utils/model-utils.js.map +1 -0
- package/dist/src/utils/namespace-utils.d.ts +6 -0
- package/dist/src/utils/namespace-utils.d.ts.map +1 -0
- package/dist/src/utils/namespace-utils.js +69 -0
- package/dist/src/utils/namespace-utils.js.map +1 -0
- package/dist/src/utils/operation-util.d.ts +97 -0
- package/dist/src/utils/operation-util.d.ts.map +1 -0
- package/dist/src/utils/operation-util.js +547 -0
- package/dist/src/utils/operation-util.js.map +1 -0
- package/dist/src/utils/parameter-utils.d.ts +9 -0
- package/dist/src/utils/parameter-utils.d.ts.map +1 -0
- package/dist/src/utils/parameter-utils.js +147 -0
- package/dist/src/utils/parameter-utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -7
- package/src/context-manager.ts +101 -0
- package/src/framework/hooks/binder.ts +3 -3
- package/src/framework/hooks/sdk-types.ts +218 -0
- package/src/framework/hooks/use-dependencies.ts +16 -0
- package/src/index.ts +23 -23
- package/src/modular/build-classical-client.ts +434 -0
- package/src/modular/build-classical-operation-groups.ts +69 -0
- package/src/modular/build-client-context.ts +325 -0
- package/src/modular/build-operations.ts +248 -0
- package/src/modular/build-project-files.ts +111 -0
- package/src/modular/build-restore-poller.ts +242 -0
- package/src/modular/build-root-index.ts +407 -0
- package/src/modular/build-subpath-index.ts +152 -0
- package/src/modular/emit-logger-file.ts +23 -0
- package/src/modular/emit-models-options.ts +56 -0
- package/src/modular/emit-models.ts +1081 -0
- package/src/modular/emit-samples.ts +675 -0
- package/src/modular/emit-tests.ts +194 -0
- package/src/modular/helpers/classical-operation-helpers.ts +375 -0
- package/src/modular/helpers/client-helpers.ts +362 -0
- package/src/modular/helpers/example-value-helpers.ts +851 -0
- package/src/modular/helpers/naming-helpers.ts +84 -0
- package/src/modular/helpers/operation-helpers.ts +3035 -0
- package/src/modular/helpers/type-helpers.ts +134 -0
- package/src/modular/serialization/build-deserializer-function.ts +564 -0
- package/src/modular/serialization/build-serializer-function.ts +614 -0
- package/src/modular/serialization/build-xml-serializer-function.ts +951 -0
- package/src/modular/serialization/serialize-utils.ts +217 -0
- package/src/modular/type-expressions/get-credential-expression.ts +1 -1
- package/src/modular/type-expressions/get-model-expression.ts +1 -1
- package/src/rlc-common/build-client-definitions.ts +235 -0
- package/src/rlc-common/build-client.ts +490 -0
- package/src/rlc-common/build-index-file.ts +344 -0
- package/src/rlc-common/build-is-unexpected-helper.ts +248 -0
- package/src/rlc-common/build-logger.ts +43 -0
- package/src/rlc-common/build-method-shortcuts.ts +71 -0
- package/src/rlc-common/build-object-types.ts +603 -0
- package/src/rlc-common/build-paginate-helper.ts +31 -0
- package/src/rlc-common/build-parameter-types.ts +554 -0
- package/src/rlc-common/build-polling-helper.ts +83 -0
- package/src/rlc-common/build-response-types.ts +180 -0
- package/src/rlc-common/build-samples.ts +32 -0
- package/src/rlc-common/build-schema-type.ts +89 -0
- package/src/rlc-common/build-serialize-helper.ts +49 -0
- package/src/rlc-common/build-top-level-index-file.ts +58 -0
- package/src/rlc-common/helpers/name-constructors.ts +110 -0
- package/src/rlc-common/helpers/operation-helpers.ts +138 -0
- package/src/rlc-common/helpers/shortcut-methods.ts +58 -0
- package/src/rlc-common/helpers/value-generation-util.ts +234 -0
- package/src/rlc-common/index.ts +39 -39
- package/src/rlc-common/metadata/build-package-file.ts +242 -0
- package/src/rlc-common/metadata/build-readme-file.ts +515 -0
- package/src/rlc-common/metadata/build-rollup-config.ts +147 -0
- package/src/rlc-common/metadata/package-json/azure-package-common.ts +152 -0
- package/src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts +199 -0
- package/src/rlc-common/metadata/package-json/build-azure-standalone-package.ts +123 -0
- package/src/rlc-common/metadata/package-json/build-flavorless-package.ts +68 -0
- package/src/rlc-common/test/build-snippets.ts +29 -0
- package/src/rlc-common/transform-sample-groups.ts +407 -0
- package/src/transform/transform-api-version-info.ts +103 -0
- package/src/transform/transform-helper-function-details.ts +88 -0
- package/src/transform/transform-parameters.ts +321 -0
- package/src/transform/transform-paths.ts +157 -0
- package/src/transform/transform-responses.ts +237 -0
- package/src/transform/transform-schemas.ts +212 -0
- package/src/transform/transform-telemetry-info.ts +33 -0
- package/src/transform/transform.ts +10 -10
- package/src/transform/transfrom-rlc-options.ts +461 -0
- package/src/utils/cross-language-def.ts +66 -0
- package/src/utils/import-helper.ts +59 -0
- package/src/utils/interfaces.ts +1 -1
- package/src/utils/model-utils.ts +1727 -0
- package/src/utils/operation-util.ts +763 -0
- package/src/utils/parameter-utils.ts +192 -0
- package/static/static-helpers/serialization/serializers.ts +1 -0
- package/dist/src/contextManager.d.ts +0 -75
- package/dist/src/contextManager.d.ts.map +0 -1
- package/dist/src/contextManager.js +0 -59
- package/dist/src/contextManager.js.map +0 -1
- package/dist/src/framework/hooks/sdkTypes.d.ts +0 -26
- package/dist/src/framework/hooks/sdkTypes.d.ts.map +0 -1
- package/dist/src/framework/hooks/sdkTypes.js +0 -157
- package/dist/src/framework/hooks/sdkTypes.js.map +0 -1
- package/dist/src/framework/hooks/useDependencies.d.ts +0 -4
- package/dist/src/framework/hooks/useDependencies.d.ts.map +0 -1
- package/dist/src/framework/hooks/useDependencies.js +0 -13
- package/dist/src/framework/hooks/useDependencies.js.map +0 -1
- package/dist/src/metaTree.d.ts +0 -7
- package/dist/src/metaTree.d.ts.map +0 -1
- package/dist/src/metaTree.js +0 -2
- package/dist/src/metaTree.js.map +0 -1
- package/dist/src/modular/buildClassicalClient.d.ts +0 -6
- package/dist/src/modular/buildClassicalClient.d.ts.map +0 -1
- package/dist/src/modular/buildClassicalClient.js +0 -345
- package/dist/src/modular/buildClassicalClient.js.map +0 -1
- package/dist/src/modular/buildClassicalOperationGroups.d.ts +0 -6
- package/dist/src/modular/buildClassicalOperationGroups.d.ts.map +0 -1
- package/dist/src/modular/buildClassicalOperationGroups.js +0 -48
- package/dist/src/modular/buildClassicalOperationGroups.js.map +0 -1
- package/dist/src/modular/buildClientContext.d.ts +0 -13
- package/dist/src/modular/buildClientContext.d.ts.map +0 -1
- package/dist/src/modular/buildClientContext.js +0 -246
- package/dist/src/modular/buildClientContext.js.map +0 -1
- package/dist/src/modular/buildModularOptions.d.ts +0 -6
- package/dist/src/modular/buildModularOptions.d.ts.map +0 -1
- package/dist/src/modular/buildModularOptions.js +0 -14
- package/dist/src/modular/buildModularOptions.js.map +0 -1
- package/dist/src/modular/buildOperations.d.ts +0 -21
- package/dist/src/modular/buildOperations.d.ts.map +0 -1
- package/dist/src/modular/buildOperations.js +0 -172
- package/dist/src/modular/buildOperations.js.map +0 -1
- package/dist/src/modular/buildProjectFiles.d.ts +0 -4
- package/dist/src/modular/buildProjectFiles.d.ts.map +0 -1
- package/dist/src/modular/buildProjectFiles.js +0 -91
- package/dist/src/modular/buildProjectFiles.js.map +0 -1
- package/dist/src/modular/buildRestorePoller.d.ts +0 -5
- package/dist/src/modular/buildRestorePoller.d.ts.map +0 -1
- package/dist/src/modular/buildRestorePoller.js +0 -216
- package/dist/src/modular/buildRestorePoller.js.map +0 -1
- package/dist/src/modular/buildRootIndex.d.ts +0 -13
- package/dist/src/modular/buildRootIndex.d.ts.map +0 -1
- package/dist/src/modular/buildRootIndex.js +0 -279
- package/dist/src/modular/buildRootIndex.js.map +0 -1
- package/dist/src/modular/buildSubpathIndex.d.ts +0 -16
- package/dist/src/modular/buildSubpathIndex.d.ts.map +0 -1
- package/dist/src/modular/buildSubpathIndex.js +0 -119
- package/dist/src/modular/buildSubpathIndex.js.map +0 -1
- package/dist/src/modular/emitLoggerFile.d.ts +0 -3
- package/dist/src/modular/emitLoggerFile.d.ts.map +0 -1
- package/dist/src/modular/emitLoggerFile.js +0 -18
- package/dist/src/modular/emitLoggerFile.js.map +0 -1
- package/dist/src/modular/emitModels.d.ts +0 -23
- package/dist/src/modular/emitModels.d.ts.map +0 -1
- package/dist/src/modular/emitModels.js +0 -850
- package/dist/src/modular/emitModels.js.map +0 -1
- package/dist/src/modular/emitModelsOptions.d.ts +0 -5
- package/dist/src/modular/emitModelsOptions.d.ts.map +0 -1
- package/dist/src/modular/emitModelsOptions.js +0 -35
- package/dist/src/modular/emitModelsOptions.js.map +0 -1
- package/dist/src/modular/emitSamples.d.ts +0 -7
- package/dist/src/modular/emitSamples.d.ts.map +0 -1
- package/dist/src/modular/emitSamples.js +0 -500
- package/dist/src/modular/emitSamples.js.map +0 -1
- package/dist/src/modular/emitTests.d.ts +0 -7
- package/dist/src/modular/emitTests.d.ts.map +0 -1
- package/dist/src/modular/emitTests.js +0 -155
- package/dist/src/modular/emitTests.js.map +0 -1
- package/dist/src/modular/helpers/classicalOperationHelpers.d.ts +0 -7
- package/dist/src/modular/helpers/classicalOperationHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/classicalOperationHelpers.js +0 -258
- package/dist/src/modular/helpers/classicalOperationHelpers.js.map +0 -1
- package/dist/src/modular/helpers/clientHelpers.d.ts +0 -34
- package/dist/src/modular/helpers/clientHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/clientHelpers.js +0 -259
- package/dist/src/modular/helpers/clientHelpers.js.map +0 -1
- package/dist/src/modular/helpers/clientOptionHelpers.d.ts +0 -43
- package/dist/src/modular/helpers/clientOptionHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/clientOptionHelpers.js +0 -103
- package/dist/src/modular/helpers/clientOptionHelpers.js.map +0 -1
- package/dist/src/modular/helpers/docsHelpers.d.ts +0 -3
- package/dist/src/modular/helpers/docsHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/docsHelpers.js +0 -10
- package/dist/src/modular/helpers/docsHelpers.js.map +0 -1
- package/dist/src/modular/helpers/exampleValueHelpers.d.ts +0 -83
- package/dist/src/modular/helpers/exampleValueHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/exampleValueHelpers.js +0 -639
- package/dist/src/modular/helpers/exampleValueHelpers.js.map +0 -1
- package/dist/src/modular/helpers/namingHelpers.d.ts +0 -22
- package/dist/src/modular/helpers/namingHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/namingHelpers.js +0 -59
- package/dist/src/modular/helpers/namingHelpers.js.map +0 -1
- package/dist/src/modular/helpers/operationHelpers.d.ts +0 -105
- package/dist/src/modular/helpers/operationHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/operationHelpers.js +0 -2328
- package/dist/src/modular/helpers/operationHelpers.js.map +0 -1
- package/dist/src/modular/helpers/typeHelpers.d.ts +0 -22
- package/dist/src/modular/helpers/typeHelpers.d.ts.map +0 -1
- package/dist/src/modular/helpers/typeHelpers.js +0 -94
- package/dist/src/modular/helpers/typeHelpers.js.map +0 -1
- package/dist/src/modular/serialization/buildDeserializerFunction.d.ts +0 -7
- package/dist/src/modular/serialization/buildDeserializerFunction.d.ts.map +0 -1
- package/dist/src/modular/serialization/buildDeserializerFunction.js +0 -401
- package/dist/src/modular/serialization/buildDeserializerFunction.js.map +0 -1
- package/dist/src/modular/serialization/buildSerializerFunction.d.ts +0 -7
- package/dist/src/modular/serialization/buildSerializerFunction.d.ts.map +0 -1
- package/dist/src/modular/serialization/buildSerializerFunction.js +0 -444
- package/dist/src/modular/serialization/buildSerializerFunction.js.map +0 -1
- package/dist/src/modular/serialization/buildXmlSerializerFunction.d.ts +0 -44
- package/dist/src/modular/serialization/buildXmlSerializerFunction.d.ts.map +0 -1
- package/dist/src/modular/serialization/buildXmlSerializerFunction.js +0 -729
- package/dist/src/modular/serialization/buildXmlSerializerFunction.js.map +0 -1
- package/dist/src/modular/serialization/serializeUtils.d.ts +0 -37
- package/dist/src/modular/serialization/serializeUtils.d.ts.map +0 -1
- package/dist/src/modular/serialization/serializeUtils.js +0 -145
- package/dist/src/modular/serialization/serializeUtils.js.map +0 -1
- package/dist/src/rlc-common/buildClient.d.ts +0 -9
- package/dist/src/rlc-common/buildClient.d.ts.map +0 -1
- package/dist/src/rlc-common/buildClient.js +0 -391
- package/dist/src/rlc-common/buildClient.js.map +0 -1
- package/dist/src/rlc-common/buildClientDefinitions.d.ts +0 -6
- package/dist/src/rlc-common/buildClientDefinitions.d.ts.map +0 -1
- package/dist/src/rlc-common/buildClientDefinitions.js +0 -157
- package/dist/src/rlc-common/buildClientDefinitions.js.map +0 -1
- package/dist/src/rlc-common/buildIndexFile.d.ts +0 -6
- package/dist/src/rlc-common/buildIndexFile.d.ts.map +0 -1
- package/dist/src/rlc-common/buildIndexFile.js +0 -241
- package/dist/src/rlc-common/buildIndexFile.js.map +0 -1
- package/dist/src/rlc-common/buildIsUnexpectedHelper.d.ts +0 -6
- package/dist/src/rlc-common/buildIsUnexpectedHelper.d.ts.map +0 -1
- package/dist/src/rlc-common/buildIsUnexpectedHelper.js +0 -223
- package/dist/src/rlc-common/buildIsUnexpectedHelper.js.map +0 -1
- package/dist/src/rlc-common/buildLogger.d.ts +0 -6
- package/dist/src/rlc-common/buildLogger.d.ts.map +0 -1
- package/dist/src/rlc-common/buildLogger.js +0 -31
- package/dist/src/rlc-common/buildLogger.js.map +0 -1
- package/dist/src/rlc-common/buildMethodShortcuts.d.ts +0 -5
- package/dist/src/rlc-common/buildMethodShortcuts.d.ts.map +0 -1
- package/dist/src/rlc-common/buildMethodShortcuts.js +0 -54
- package/dist/src/rlc-common/buildMethodShortcuts.js.map +0 -1
- package/dist/src/rlc-common/buildObjectTypes.d.ts +0 -29
- package/dist/src/rlc-common/buildObjectTypes.d.ts.map +0 -1
- package/dist/src/rlc-common/buildObjectTypes.js +0 -412
- package/dist/src/rlc-common/buildObjectTypes.js.map +0 -1
- package/dist/src/rlc-common/buildPaginateHelper.d.ts +0 -6
- package/dist/src/rlc-common/buildPaginateHelper.d.ts.map +0 -1
- package/dist/src/rlc-common/buildPaginateHelper.js +0 -27
- package/dist/src/rlc-common/buildPaginateHelper.js.map +0 -1
- package/dist/src/rlc-common/buildParameterTypes.d.ts +0 -14
- package/dist/src/rlc-common/buildParameterTypes.d.ts.map +0 -1
- package/dist/src/rlc-common/buildParameterTypes.js +0 -391
- package/dist/src/rlc-common/buildParameterTypes.js.map +0 -1
- package/dist/src/rlc-common/buildPollingHelper.d.ts +0 -6
- package/dist/src/rlc-common/buildPollingHelper.d.ts.map +0 -1
- package/dist/src/rlc-common/buildPollingHelper.js +0 -61
- package/dist/src/rlc-common/buildPollingHelper.js.map +0 -1
- package/dist/src/rlc-common/buildResponseTypes.d.ts +0 -6
- package/dist/src/rlc-common/buildResponseTypes.d.ts.map +0 -1
- package/dist/src/rlc-common/buildResponseTypes.js +0 -143
- package/dist/src/rlc-common/buildResponseTypes.js.map +0 -1
- package/dist/src/rlc-common/buildSamples.d.ts +0 -3
- package/dist/src/rlc-common/buildSamples.d.ts.map +0 -1
- package/dist/src/rlc-common/buildSamples.js +0 -30
- package/dist/src/rlc-common/buildSamples.js.map +0 -1
- package/dist/src/rlc-common/buildSchemaType.d.ts +0 -20
- package/dist/src/rlc-common/buildSchemaType.d.ts.map +0 -1
- package/dist/src/rlc-common/buildSchemaType.js +0 -71
- package/dist/src/rlc-common/buildSchemaType.js.map +0 -1
- package/dist/src/rlc-common/buildSerializeHelper.d.ts +0 -6
- package/dist/src/rlc-common/buildSerializeHelper.d.ts.map +0 -1
- package/dist/src/rlc-common/buildSerializeHelper.js +0 -36
- package/dist/src/rlc-common/buildSerializeHelper.js.map +0 -1
- package/dist/src/rlc-common/buildTopLevelIndexFile.d.ts +0 -6
- package/dist/src/rlc-common/buildTopLevelIndexFile.d.ts.map +0 -1
- package/dist/src/rlc-common/buildTopLevelIndexFile.js +0 -48
- package/dist/src/rlc-common/buildTopLevelIndexFile.js.map +0 -1
- package/dist/src/rlc-common/helpers/apiVersionUtil.d.ts +0 -17
- package/dist/src/rlc-common/helpers/apiVersionUtil.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/apiVersionUtil.js +0 -43
- package/dist/src/rlc-common/helpers/apiVersionUtil.js.map +0 -1
- package/dist/src/rlc-common/helpers/importsUtil.d.ts +0 -18
- package/dist/src/rlc-common/helpers/importsUtil.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/importsUtil.js +0 -164
- package/dist/src/rlc-common/helpers/importsUtil.js.map +0 -1
- package/dist/src/rlc-common/helpers/nameConstructors.d.ts +0 -42
- package/dist/src/rlc-common/helpers/nameConstructors.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/nameConstructors.js +0 -61
- package/dist/src/rlc-common/helpers/nameConstructors.js.map +0 -1
- package/dist/src/rlc-common/helpers/nameUtils.d.ts +0 -37
- package/dist/src/rlc-common/helpers/nameUtils.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/nameUtils.js +0 -240
- package/dist/src/rlc-common/helpers/nameUtils.js.map +0 -1
- package/dist/src/rlc-common/helpers/operationHelpers.d.ts +0 -16
- package/dist/src/rlc-common/helpers/operationHelpers.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/operationHelpers.js +0 -104
- package/dist/src/rlc-common/helpers/operationHelpers.js.map +0 -1
- package/dist/src/rlc-common/helpers/packageUtil.d.ts +0 -7
- package/dist/src/rlc-common/helpers/packageUtil.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/packageUtil.js +0 -10
- package/dist/src/rlc-common/helpers/packageUtil.js.map +0 -1
- package/dist/src/rlc-common/helpers/pathUtils.d.ts +0 -2
- package/dist/src/rlc-common/helpers/pathUtils.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/pathUtils.js +0 -10
- package/dist/src/rlc-common/helpers/pathUtils.js.map +0 -1
- package/dist/src/rlc-common/helpers/schemaHelpers.d.ts +0 -10
- package/dist/src/rlc-common/helpers/schemaHelpers.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/schemaHelpers.js +0 -37
- package/dist/src/rlc-common/helpers/schemaHelpers.js.map +0 -1
- package/dist/src/rlc-common/helpers/shortcutMethods.d.ts +0 -4
- package/dist/src/rlc-common/helpers/shortcutMethods.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/shortcutMethods.js +0 -49
- package/dist/src/rlc-common/helpers/shortcutMethods.js.map +0 -1
- package/dist/src/rlc-common/helpers/typeUtil.d.ts +0 -32
- package/dist/src/rlc-common/helpers/typeUtil.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/typeUtil.js +0 -162
- package/dist/src/rlc-common/helpers/typeUtil.js.map +0 -1
- package/dist/src/rlc-common/helpers/valueGenerationUtil.d.ts +0 -12
- package/dist/src/rlc-common/helpers/valueGenerationUtil.d.ts.map +0 -1
- package/dist/src/rlc-common/helpers/valueGenerationUtil.js +0 -161
- package/dist/src/rlc-common/helpers/valueGenerationUtil.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.d.ts +0 -6
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js +0 -55
- package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildChangelogFile.d.ts +0 -6
- package/dist/src/rlc-common/metadata/buildChangelogFile.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildChangelogFile.js +0 -25
- package/dist/src/rlc-common/metadata/buildChangelogFile.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildESLintConfig.d.ts +0 -6
- package/dist/src/rlc-common/metadata/buildESLintConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildESLintConfig.js +0 -79
- package/dist/src/rlc-common/metadata/buildESLintConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildLicenseFile.d.ts +0 -5
- package/dist/src/rlc-common/metadata/buildLicenseFile.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildLicenseFile.js +0 -32
- package/dist/src/rlc-common/metadata/buildLicenseFile.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildPackageFile.d.ts +0 -25
- package/dist/src/rlc-common/metadata/buildPackageFile.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildPackageFile.js +0 -197
- package/dist/src/rlc-common/metadata/buildPackageFile.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildReadmeFile.d.ts +0 -11
- package/dist/src/rlc-common/metadata/buildReadmeFile.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildReadmeFile.js +0 -418
- package/dist/src/rlc-common/metadata/buildReadmeFile.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildRollupConfig.d.ts +0 -6
- package/dist/src/rlc-common/metadata/buildRollupConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildRollupConfig.js +0 -140
- package/dist/src/rlc-common/metadata/buildRollupConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.d.ts +0 -6
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.js +0 -15
- package/dist/src/rlc-common/metadata/buildSampleEnvFile.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildTestConfig.d.ts +0 -16
- package/dist/src/rlc-common/metadata/buildTestConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildTestConfig.js +0 -54
- package/dist/src/rlc-common/metadata/buildTestConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildTsConfig.d.ts +0 -61
- package/dist/src/rlc-common/metadata/buildTsConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildTsConfig.js +0 -170
- package/dist/src/rlc-common/metadata/buildTsConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildVitestConfig.d.ts +0 -6
- package/dist/src/rlc-common/metadata/buildVitestConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildVitestConfig.js +0 -26
- package/dist/src/rlc-common/metadata/buildVitestConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/buildWarpConfig.d.ts +0 -20
- package/dist/src/rlc-common/metadata/buildWarpConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/buildWarpConfig.js +0 -76
- package/dist/src/rlc-common/metadata/buildWarpConfig.js.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.d.ts +0 -51
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.js +0 -121
- package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.js.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.d.ts +0 -242
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.js +0 -171
- package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.js.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.d.ts +0 -8
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.js +0 -101
- package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.js.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.d.ts +0 -57
- package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.js +0 -53
- package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.js.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.d.ts +0 -64
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.d.ts.map +0 -1
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.js +0 -180
- package/dist/src/rlc-common/metadata/packageJson/packageCommon.js.map +0 -1
- package/dist/src/rlc-common/static/paginateContent.d.ts +0 -2
- package/dist/src/rlc-common/static/paginateContent.d.ts.map +0 -1
- package/dist/src/rlc-common/static/paginateContent.js +0 -345
- package/dist/src/rlc-common/static/paginateContent.js.map +0 -1
- package/dist/src/rlc-common/static/pollingContent.d.ts +0 -2
- package/dist/src/rlc-common/static/pollingContent.d.ts.map +0 -1
- package/dist/src/rlc-common/static/pollingContent.js +0 -225
- package/dist/src/rlc-common/static/pollingContent.js.map +0 -1
- package/dist/src/rlc-common/static/sampleTemplate.d.ts +0 -2
- package/dist/src/rlc-common/static/sampleTemplate.d.ts.map +0 -1
- package/dist/src/rlc-common/static/sampleTemplate.js +0 -56
- package/dist/src/rlc-common/static/sampleTemplate.js.map +0 -1
- package/dist/src/rlc-common/static/serializeHelper.d.ts +0 -6
- package/dist/src/rlc-common/static/serializeHelper.d.ts.map +0 -1
- package/dist/src/rlc-common/static/serializeHelper.js +0 -31
- package/dist/src/rlc-common/static/serializeHelper.js.map +0 -1
- package/dist/src/rlc-common/test/buildKarmaConfig.d.ts +0 -6
- package/dist/src/rlc-common/test/buildKarmaConfig.d.ts.map +0 -1
- package/dist/src/rlc-common/test/buildKarmaConfig.js +0 -11
- package/dist/src/rlc-common/test/buildKarmaConfig.js.map +0 -1
- package/dist/src/rlc-common/test/buildRecordedClient.d.ts +0 -6
- package/dist/src/rlc-common/test/buildRecordedClient.d.ts.map +0 -1
- package/dist/src/rlc-common/test/buildRecordedClient.js +0 -17
- package/dist/src/rlc-common/test/buildRecordedClient.js.map +0 -1
- package/dist/src/rlc-common/test/buildSampleTest.d.ts +0 -6
- package/dist/src/rlc-common/test/buildSampleTest.d.ts.map +0 -1
- package/dist/src/rlc-common/test/buildSampleTest.js +0 -14
- package/dist/src/rlc-common/test/buildSampleTest.js.map +0 -1
- package/dist/src/rlc-common/test/buildSnippets.d.ts +0 -6
- package/dist/src/rlc-common/test/buildSnippets.d.ts.map +0 -1
- package/dist/src/rlc-common/test/buildSnippets.js +0 -26
- package/dist/src/rlc-common/test/buildSnippets.js.map +0 -1
- package/dist/src/rlc-common/transformSampleGroups.d.ts +0 -9
- package/dist/src/rlc-common/transformSampleGroups.d.ts.map +0 -1
- package/dist/src/rlc-common/transformSampleGroups.js +0 -313
- package/dist/src/rlc-common/transformSampleGroups.js.map +0 -1
- package/dist/src/transform/transformApiVersionInfo.d.ts +0 -6
- package/dist/src/transform/transformApiVersionInfo.d.ts.map +0 -1
- package/dist/src/transform/transformApiVersionInfo.js +0 -78
- package/dist/src/transform/transformApiVersionInfo.js.map +0 -1
- package/dist/src/transform/transformHelperFunctionDetails.d.ts +0 -5
- package/dist/src/transform/transformHelperFunctionDetails.d.ts.map +0 -1
- package/dist/src/transform/transformHelperFunctionDetails.js +0 -74
- package/dist/src/transform/transformHelperFunctionDetails.js.map +0 -1
- package/dist/src/transform/transformParameters.d.ts +0 -14
- package/dist/src/transform/transformParameters.d.ts.map +0 -1
- package/dist/src/transform/transformParameters.js +0 -201
- package/dist/src/transform/transformParameters.js.map +0 -1
- package/dist/src/transform/transformPaths.d.ts +0 -5
- package/dist/src/transform/transformPaths.d.ts.map +0 -1
- package/dist/src/transform/transformPaths.js +0 -102
- package/dist/src/transform/transformPaths.js.map +0 -1
- package/dist/src/transform/transformResponses.d.ts +0 -5
- package/dist/src/transform/transformResponses.d.ts.map +0 -1
- package/dist/src/transform/transformResponses.js +0 -171
- package/dist/src/transform/transformResponses.js.map +0 -1
- package/dist/src/transform/transformSchemas.d.ts +0 -4
- package/dist/src/transform/transformSchemas.d.ts.map +0 -1
- package/dist/src/transform/transformSchemas.js +0 -191
- package/dist/src/transform/transformSchemas.js.map +0 -1
- package/dist/src/transform/transformTelemetryInfo.d.ts +0 -4
- package/dist/src/transform/transformTelemetryInfo.d.ts.map +0 -1
- package/dist/src/transform/transformTelemetryInfo.js +0 -22
- package/dist/src/transform/transformTelemetryInfo.js.map +0 -1
- package/dist/src/transform/transfromRLCOptions.d.ts +0 -14
- package/dist/src/transform/transfromRLCOptions.d.ts.map +0 -1
- package/dist/src/transform/transfromRLCOptions.js +0 -369
- package/dist/src/transform/transfromRLCOptions.js.map +0 -1
- package/dist/src/utils/clientUtils.d.ts +0 -10
- package/dist/src/utils/clientUtils.d.ts.map +0 -1
- package/dist/src/utils/clientUtils.js +0 -124
- package/dist/src/utils/clientUtils.js.map +0 -1
- package/dist/src/utils/credentialUtils.d.ts +0 -15
- package/dist/src/utils/credentialUtils.d.ts.map +0 -1
- package/dist/src/utils/credentialUtils.js +0 -68
- package/dist/src/utils/credentialUtils.js.map +0 -1
- package/dist/src/utils/crossLanguageDef.d.ts +0 -6
- package/dist/src/utils/crossLanguageDef.d.ts.map +0 -1
- package/dist/src/utils/crossLanguageDef.js +0 -59
- package/dist/src/utils/crossLanguageDef.js.map +0 -1
- package/dist/src/utils/emitUtil.d.ts +0 -5
- package/dist/src/utils/emitUtil.d.ts.map +0 -1
- package/dist/src/utils/emitUtil.js +0 -71
- package/dist/src/utils/emitUtil.js.map +0 -1
- package/dist/src/utils/fileSystemUtils.d.ts +0 -5
- package/dist/src/utils/fileSystemUtils.d.ts.map +0 -1
- package/dist/src/utils/fileSystemUtils.js +0 -59
- package/dist/src/utils/fileSystemUtils.js.map +0 -1
- package/dist/src/utils/importHelper.d.ts +0 -10
- package/dist/src/utils/importHelper.d.ts.map +0 -1
- package/dist/src/utils/importHelper.js +0 -51
- package/dist/src/utils/importHelper.js.map +0 -1
- package/dist/src/utils/mediaTypes.d.ts +0 -28
- package/dist/src/utils/mediaTypes.d.ts.map +0 -1
- package/dist/src/utils/mediaTypes.js +0 -124
- package/dist/src/utils/mediaTypes.js.map +0 -1
- package/dist/src/utils/modelUtils.d.ts +0 -60
- package/dist/src/utils/modelUtils.d.ts.map +0 -1
- package/dist/src/utils/modelUtils.js +0 -1488
- package/dist/src/utils/modelUtils.js.map +0 -1
- package/dist/src/utils/namespaceUtils.d.ts +0 -6
- package/dist/src/utils/namespaceUtils.d.ts.map +0 -1
- package/dist/src/utils/namespaceUtils.js +0 -69
- package/dist/src/utils/namespaceUtils.js.map +0 -1
- package/dist/src/utils/operationUtil.d.ts +0 -97
- package/dist/src/utils/operationUtil.d.ts.map +0 -1
- package/dist/src/utils/operationUtil.js +0 -547
- package/dist/src/utils/operationUtil.js.map +0 -1
- package/dist/src/utils/parameterUtils.d.ts +0 -9
- package/dist/src/utils/parameterUtils.d.ts.map +0 -1
- package/dist/src/utils/parameterUtils.js +0 -147
- package/dist/src/utils/parameterUtils.js.map +0 -1
- package/src/contextManager.ts +0 -101
- package/src/framework/hooks/sdkTypes.ts +0 -218
- package/src/framework/hooks/useDependencies.ts +0 -16
- package/src/modular/buildClassicalClient.ts +0 -434
- package/src/modular/buildClassicalOperationGroups.ts +0 -69
- package/src/modular/buildClientContext.ts +0 -325
- package/src/modular/buildOperations.ts +0 -248
- package/src/modular/buildProjectFiles.ts +0 -111
- package/src/modular/buildRestorePoller.ts +0 -242
- package/src/modular/buildRootIndex.ts +0 -407
- package/src/modular/buildSubpathIndex.ts +0 -152
- package/src/modular/emitLoggerFile.ts +0 -23
- package/src/modular/emitModels.ts +0 -1081
- package/src/modular/emitModelsOptions.ts +0 -56
- package/src/modular/emitSamples.ts +0 -675
- package/src/modular/emitTests.ts +0 -194
- package/src/modular/helpers/classicalOperationHelpers.ts +0 -375
- package/src/modular/helpers/clientHelpers.ts +0 -362
- package/src/modular/helpers/exampleValueHelpers.ts +0 -851
- package/src/modular/helpers/namingHelpers.ts +0 -84
- package/src/modular/helpers/operationHelpers.ts +0 -3035
- package/src/modular/helpers/typeHelpers.ts +0 -131
- package/src/modular/serialization/buildDeserializerFunction.ts +0 -564
- package/src/modular/serialization/buildSerializerFunction.ts +0 -616
- package/src/modular/serialization/buildXmlSerializerFunction.ts +0 -951
- package/src/modular/serialization/serializeUtils.ts +0 -217
- package/src/rlc-common/buildClient.ts +0 -490
- package/src/rlc-common/buildClientDefinitions.ts +0 -235
- package/src/rlc-common/buildIndexFile.ts +0 -344
- package/src/rlc-common/buildIsUnexpectedHelper.ts +0 -248
- package/src/rlc-common/buildLogger.ts +0 -43
- package/src/rlc-common/buildMethodShortcuts.ts +0 -71
- package/src/rlc-common/buildObjectTypes.ts +0 -603
- package/src/rlc-common/buildPaginateHelper.ts +0 -31
- package/src/rlc-common/buildParameterTypes.ts +0 -554
- package/src/rlc-common/buildPollingHelper.ts +0 -83
- package/src/rlc-common/buildResponseTypes.ts +0 -180
- package/src/rlc-common/buildSamples.ts +0 -32
- package/src/rlc-common/buildSchemaType.ts +0 -89
- package/src/rlc-common/buildSerializeHelper.ts +0 -49
- package/src/rlc-common/buildTopLevelIndexFile.ts +0 -58
- package/src/rlc-common/helpers/nameConstructors.ts +0 -110
- package/src/rlc-common/helpers/operationHelpers.ts +0 -138
- package/src/rlc-common/helpers/shortcutMethods.ts +0 -58
- package/src/rlc-common/helpers/valueGenerationUtil.ts +0 -234
- package/src/rlc-common/metadata/buildPackageFile.ts +0 -242
- package/src/rlc-common/metadata/buildReadmeFile.ts +0 -515
- package/src/rlc-common/metadata/buildRollupConfig.ts +0 -147
- package/src/rlc-common/metadata/packageJson/azurePackageCommon.ts +0 -152
- package/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.ts +0 -199
- package/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.ts +0 -123
- package/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.ts +0 -68
- package/src/rlc-common/test/buildSnippets.ts +0 -29
- package/src/rlc-common/transformSampleGroups.ts +0 -407
- package/src/transform/transformApiVersionInfo.ts +0 -103
- package/src/transform/transformHelperFunctionDetails.ts +0 -88
- package/src/transform/transformParameters.ts +0 -321
- package/src/transform/transformPaths.ts +0 -157
- package/src/transform/transformResponses.ts +0 -237
- package/src/transform/transformSchemas.ts +0 -212
- package/src/transform/transformTelemetryInfo.ts +0 -33
- package/src/transform/transfromRLCOptions.ts +0 -461
- package/src/utils/crossLanguageDef.ts +0 -66
- package/src/utils/importHelper.ts +0 -59
- package/src/utils/modelUtils.ts +0 -1737
- package/src/utils/operationUtil.ts +0 -763
- package/src/utils/parameterUtils.ts +0 -192
- /package/src/{metaTree.ts → meta-tree.ts} +0 -0
- /package/src/modular/{buildModularOptions.ts → build-modular-options.ts} +0 -0
- /package/src/modular/helpers/{clientOptionHelpers.ts → client-option-helpers.ts} +0 -0
- /package/src/modular/helpers/{docsHelpers.ts → docs-helpers.ts} +0 -0
- /package/src/rlc-common/helpers/{apiVersionUtil.ts → api-version-util.ts} +0 -0
- /package/src/rlc-common/helpers/{importsUtil.ts → imports-util.ts} +0 -0
- /package/src/rlc-common/helpers/{nameUtils.ts → name-utils.ts} +0 -0
- /package/src/rlc-common/helpers/{packageUtil.ts → package-util.ts} +0 -0
- /package/src/rlc-common/helpers/{pathUtils.ts → path-utils.ts} +0 -0
- /package/src/rlc-common/helpers/{schemaHelpers.ts → schema-helpers.ts} +0 -0
- /package/src/rlc-common/helpers/{typeUtil.ts → type-util.ts} +0 -0
- /package/src/rlc-common/metadata/{buildApiExtractorConfig.ts → build-api-extractor-config.ts} +0 -0
- /package/src/rlc-common/metadata/{buildChangelogFile.ts → build-changelog-file.ts} +0 -0
- /package/src/rlc-common/metadata/{buildESLintConfig.ts → build-es-lint-config.ts} +0 -0
- /package/src/rlc-common/metadata/{buildLicenseFile.ts → build-license-file.ts} +0 -0
- /package/src/rlc-common/metadata/{buildSampleEnvFile.ts → build-sample-env-file.ts} +0 -0
- /package/src/rlc-common/metadata/{buildTestConfig.ts → build-test-config.ts} +0 -0
- /package/src/rlc-common/metadata/{buildTsConfig.ts → build-ts-config.ts} +0 -0
- /package/src/rlc-common/metadata/{buildVitestConfig.ts → build-vitest-config.ts} +0 -0
- /package/src/rlc-common/metadata/{buildWarpConfig.ts → build-warp-config.ts} +0 -0
- /package/src/rlc-common/metadata/{packageJson/packageCommon.ts → package-json/package-common.ts} +0 -0
- /package/src/rlc-common/static/{paginateContent.ts → paginate-content.ts} +0 -0
- /package/src/rlc-common/static/{pollingContent.ts → polling-content.ts} +0 -0
- /package/src/rlc-common/static/{sampleTemplate.ts → sample-template.ts} +0 -0
- /package/src/rlc-common/static/{serializeHelper.ts → serialize-helper.ts} +0 -0
- /package/src/rlc-common/test/{buildKarmaConfig.ts → build-karma-config.ts} +0 -0
- /package/src/rlc-common/test/{buildRecordedClient.ts → build-recorded-client.ts} +0 -0
- /package/src/rlc-common/test/{buildSampleTest.ts → build-sample-test.ts} +0 -0
- /package/src/utils/{clientUtils.ts → client-utils.ts} +0 -0
- /package/src/utils/{credentialUtils.ts → credential-utils.ts} +0 -0
- /package/src/utils/{emitUtil.ts → emit-util.ts} +0 -0
- /package/src/utils/{fileSystemUtils.ts → file-system-utils.ts} +0 -0
- /package/src/utils/{mediaTypes.ts → media-types.ts} +0 -0
- /package/src/utils/{namespaceUtils.ts → namespace-utils.ts} +0 -0
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { NameType, isAzurePackage, normalizeName } from "../rlc-common/index.js";
|
|
2
|
-
import {
|
|
3
|
-
buildGetClientCredentialParam,
|
|
4
|
-
buildGetClientEndpointParam,
|
|
5
|
-
buildGetClientOptionsParam,
|
|
6
|
-
getClientParameterName,
|
|
7
|
-
getClientParameters,
|
|
8
|
-
getClientParametersDeclaration,
|
|
9
|
-
} from "./helpers/clientHelpers.js";
|
|
10
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
SdkClientType,
|
|
14
|
-
SdkCredentialParameter,
|
|
15
|
-
SdkEndpointParameter,
|
|
16
|
-
SdkHttpParameter,
|
|
17
|
-
SdkMethodParameter,
|
|
18
|
-
SdkServiceOperation,
|
|
19
|
-
} from "@azure-tools/typespec-client-generator-core";
|
|
20
|
-
import { NoTarget } from "@typespec/compiler";
|
|
21
|
-
import { SourceFile } from "ts-morph";
|
|
22
|
-
import { useContext } from "../contextManager.js";
|
|
23
|
-
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
24
|
-
import { resolveReference } from "../framework/reference.js";
|
|
25
|
-
import { refkey } from "../framework/refkey.js";
|
|
26
|
-
import { reportDiagnostic } from "../lib.js";
|
|
27
|
-
import { getModularClientOptions } from "../utils/clientUtils.js";
|
|
28
|
-
import { SdkContext } from "../utils/interfaces.js";
|
|
29
|
-
import { buildEnumTypes, getApiVersionEnum } from "./emitModels.js";
|
|
30
|
-
import { getDocsFromDescription } from "./helpers/docsHelpers.js";
|
|
31
|
-
import { getClassicalClientName, getClientName } from "./helpers/namingHelpers.js";
|
|
32
|
-
import { CloudSettingHelpers } from "./static-helpers-metadata.js";
|
|
33
|
-
import { getTypeExpression } from "./type-expressions/get-type-expression.js";
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* This function gets the path of the file containing the modular client context
|
|
37
|
-
*/
|
|
38
|
-
export function getClientContextPath(
|
|
39
|
-
clientMap: [string[], SdkClientType<SdkServiceOperation>],
|
|
40
|
-
emitterOptions: ModularEmitterOptions,
|
|
41
|
-
): string {
|
|
42
|
-
const [_, client] = clientMap;
|
|
43
|
-
const { subfolder } = getModularClientOptions(clientMap);
|
|
44
|
-
const name = getClientName(client);
|
|
45
|
-
const srcPath = emitterOptions.modularOptions.sourceRoot;
|
|
46
|
-
const contentPath = `${srcPath}/${
|
|
47
|
-
subfolder && subfolder !== "" ? subfolder + "/" : ""
|
|
48
|
-
}api/${normalizeName(name, NameType.File)}Context.ts`;
|
|
49
|
-
return contentPath;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* This function creates the file containing the modular client context
|
|
54
|
-
*/
|
|
55
|
-
export function buildClientContext(
|
|
56
|
-
dpgContext: SdkContext,
|
|
57
|
-
clientMap: [string[], SdkClientType<SdkServiceOperation>],
|
|
58
|
-
emitterOptions: ModularEmitterOptions,
|
|
59
|
-
): SourceFile {
|
|
60
|
-
const project = useContext("outputProject");
|
|
61
|
-
const dependencies = useDependencies();
|
|
62
|
-
const [hierarchy, client] = clientMap;
|
|
63
|
-
const name = getClientName(client);
|
|
64
|
-
const { rlcClientName } = getModularClientOptions(clientMap);
|
|
65
|
-
const requiredParams = getClientParametersDeclaration(client, dpgContext, {
|
|
66
|
-
onClientOnly: false,
|
|
67
|
-
requiredOnly: true,
|
|
68
|
-
apiVersionAsRequired: true,
|
|
69
|
-
});
|
|
70
|
-
const clientContextFile = project.createSourceFile(
|
|
71
|
-
getClientContextPath(clientMap, emitterOptions),
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
// Get all client parameters (both required and optional) for the interface
|
|
75
|
-
const requiredInterfaceProperties = getClientParameters(client, dpgContext, {
|
|
76
|
-
onClientOnly: false,
|
|
77
|
-
requiredOnly: true,
|
|
78
|
-
})
|
|
79
|
-
.filter((p) => {
|
|
80
|
-
const clientParamName = getClientParameterName(p);
|
|
81
|
-
return clientParamName !== "endpointParam" && clientParamName !== "credential";
|
|
82
|
-
})
|
|
83
|
-
.map((p) => {
|
|
84
|
-
return {
|
|
85
|
-
name: getClientParameterName(p),
|
|
86
|
-
type: getTypeExpression(dpgContext, p.type),
|
|
87
|
-
hasQuestionToken: false,
|
|
88
|
-
docs: getDocsWithKnownVersion(dpgContext, p),
|
|
89
|
-
};
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// Collect names of required properties to avoid duplicates
|
|
93
|
-
const requiredPropertyNames = new Set(requiredInterfaceProperties.map((p) => p.name));
|
|
94
|
-
|
|
95
|
-
const optionalInterfaceProperties = getClientParameters(client, dpgContext, {
|
|
96
|
-
onClientOnly: false,
|
|
97
|
-
optionalOnly: true,
|
|
98
|
-
})
|
|
99
|
-
.filter((p) => {
|
|
100
|
-
const clientParamName = getClientParameterName(p);
|
|
101
|
-
return (
|
|
102
|
-
clientParamName !== "endpointParam" &&
|
|
103
|
-
clientParamName !== "credential" &&
|
|
104
|
-
clientParamName !== "endpoint" &&
|
|
105
|
-
!requiredPropertyNames.has(clientParamName) // Avoid duplicating required properties
|
|
106
|
-
);
|
|
107
|
-
})
|
|
108
|
-
.map((p) => {
|
|
109
|
-
return {
|
|
110
|
-
name: getClientParameterName(p),
|
|
111
|
-
type: getTypeExpression(dpgContext, p.type),
|
|
112
|
-
hasQuestionToken: true,
|
|
113
|
-
docs: getDocsWithKnownVersion(dpgContext, p),
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
clientContextFile.addInterface({
|
|
118
|
-
isExported: true,
|
|
119
|
-
name: `${rlcClientName}`,
|
|
120
|
-
extends: [resolveReference(dependencies.Client)],
|
|
121
|
-
docs: getDocsFromDescription(client.doc),
|
|
122
|
-
properties: [...requiredInterfaceProperties, ...optionalInterfaceProperties],
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
const propertiesInOptions = getClientParameters(client, dpgContext, {
|
|
126
|
-
optionalOnly: true,
|
|
127
|
-
})
|
|
128
|
-
.filter((p) => getClientParameterName(p) !== "endpoint")
|
|
129
|
-
.map((p) => {
|
|
130
|
-
return {
|
|
131
|
-
name: getClientParameterName(p),
|
|
132
|
-
type:
|
|
133
|
-
p.name.toLowerCase() === "apiversion" ? "string" : getTypeExpression(dpgContext, p.type),
|
|
134
|
-
hasQuestionToken: true,
|
|
135
|
-
docs: getDocsWithKnownVersion(dpgContext, p),
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
if (dpgContext.arm) {
|
|
139
|
-
propertiesInOptions.push({
|
|
140
|
-
name: "cloudSetting",
|
|
141
|
-
type: `${resolveReference(CloudSettingHelpers.AzureSupportedClouds)}`,
|
|
142
|
-
hasQuestionToken: true,
|
|
143
|
-
docs: [`Specifies the Azure cloud environment for the client.`],
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
// check if we have duplication options
|
|
147
|
-
const existingOptionNames = new Set<string>();
|
|
148
|
-
for (const property of propertiesInOptions) {
|
|
149
|
-
if (existingOptionNames.has(property.name)) {
|
|
150
|
-
reportDiagnostic(dpgContext.program, {
|
|
151
|
-
code: "parameter-name-conflict",
|
|
152
|
-
format: { parameterName: property.name },
|
|
153
|
-
target: NoTarget,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
existingOptionNames.add(property.name);
|
|
157
|
-
}
|
|
158
|
-
clientContextFile.addInterface({
|
|
159
|
-
name: `${getClassicalClientName(client)}OptionalParams`,
|
|
160
|
-
isExported: true,
|
|
161
|
-
extends: [resolveReference(dependencies.ClientOptions)],
|
|
162
|
-
properties: propertiesInOptions,
|
|
163
|
-
docs: ["Optional parameters for the client."],
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
// TODO use binder here
|
|
167
|
-
// (for now) now logger for unbranded pkgs
|
|
168
|
-
if (isAzurePackage(emitterOptions)) {
|
|
169
|
-
clientContextFile.addImportDeclaration({
|
|
170
|
-
moduleSpecifier: "../".repeat(hierarchy.length + 1) + "logger.js",
|
|
171
|
-
namedImports: ["logger"],
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const factoryFunction = clientContextFile.addFunction({
|
|
176
|
-
docs: getDocsFromDescription(client.doc),
|
|
177
|
-
name: `create${name}`,
|
|
178
|
-
returnType: `${rlcClientName}`,
|
|
179
|
-
parameters: getClientParametersDeclaration(client, dpgContext, {
|
|
180
|
-
onClientOnly: false,
|
|
181
|
-
requiredOnly: true,
|
|
182
|
-
}),
|
|
183
|
-
isExported: true,
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
const { endpointParamName: endpointParam, assignedOptionalParams } = buildGetClientEndpointParam(
|
|
187
|
-
factoryFunction,
|
|
188
|
-
dpgContext,
|
|
189
|
-
client,
|
|
190
|
-
);
|
|
191
|
-
const credentialParam = buildGetClientCredentialParam(client, emitterOptions);
|
|
192
|
-
|
|
193
|
-
// Get api version param early so we can use its name when building options
|
|
194
|
-
const apiVersionParam = getClientParameters(client, dpgContext).find((x) => x.isApiVersionParam);
|
|
195
|
-
const apiVersionParamName = apiVersionParam ? getClientParameterName(apiVersionParam) : undefined;
|
|
196
|
-
|
|
197
|
-
const optionsParam = buildGetClientOptionsParam(
|
|
198
|
-
factoryFunction,
|
|
199
|
-
emitterOptions,
|
|
200
|
-
endpointParam,
|
|
201
|
-
apiVersionParamName,
|
|
202
|
-
);
|
|
203
|
-
|
|
204
|
-
factoryFunction.addStatements(
|
|
205
|
-
`const clientContext = ${resolveReference(
|
|
206
|
-
dependencies.getClient,
|
|
207
|
-
)}(${endpointParam}, ${credentialParam}, ${optionsParam});`,
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
const { customHttpAuthHeaderName, customHttpAuthSharedKeyPrefix } = emitterOptions.options;
|
|
211
|
-
|
|
212
|
-
if (customHttpAuthHeaderName && customHttpAuthSharedKeyPrefix) {
|
|
213
|
-
factoryFunction.addStatements(`
|
|
214
|
-
if(${resolveReference(dependencies.isKeyCredential)}(credential)) {
|
|
215
|
-
clientContext.pipeline.addPolicy({
|
|
216
|
-
name: "customKeyCredentialPolicy",
|
|
217
|
-
sendRequest(request, next) {
|
|
218
|
-
request.headers.set("${customHttpAuthHeaderName}", "${customHttpAuthSharedKeyPrefix} " + credential.key);
|
|
219
|
-
return next(request);
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
`);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
let apiVersionStatement = ``;
|
|
227
|
-
const endpointParameter = getClientParameters(client, dpgContext, {
|
|
228
|
-
onClientOnly: false,
|
|
229
|
-
requiredOnly: true,
|
|
230
|
-
skipEndpointTemplate: true,
|
|
231
|
-
}).find((x) => x.kind === "endpoint");
|
|
232
|
-
if (apiVersionParam) {
|
|
233
|
-
const templateArguments =
|
|
234
|
-
endpointParameter && endpointParameter.type.kind === "endpoint"
|
|
235
|
-
? endpointParameter.type.templateArguments
|
|
236
|
-
: endpointParameter && endpointParameter.type.kind === "union"
|
|
237
|
-
? endpointParameter.type.variantTypes[0]?.templateArguments
|
|
238
|
-
: [];
|
|
239
|
-
const apiVersionInEndpoint =
|
|
240
|
-
templateArguments && templateArguments.find((p) => p.isApiVersionParam);
|
|
241
|
-
if (!apiVersionInEndpoint && apiVersionParam.clientDefaultValue) {
|
|
242
|
-
apiVersionStatement += `const ${apiVersionParamName} = options.${apiVersionParamName};`;
|
|
243
|
-
}
|
|
244
|
-
} else if (isAzurePackage(emitterOptions)) {
|
|
245
|
-
apiVersionStatement += `
|
|
246
|
-
if (options.apiVersion) {
|
|
247
|
-
logger.warning("This client does not support client api-version, please change it at the operation level");
|
|
248
|
-
}`;
|
|
249
|
-
} else {
|
|
250
|
-
apiVersionStatement += `
|
|
251
|
-
if (options.apiVersion) {
|
|
252
|
-
console.warn("This client does not support client api-version, please change it at the operation level");
|
|
253
|
-
}`;
|
|
254
|
-
}
|
|
255
|
-
factoryFunction.addStatements(apiVersionStatement);
|
|
256
|
-
|
|
257
|
-
const contextRequiredParam = requiredParams.filter(
|
|
258
|
-
(p) => p.name !== "endpointParam" && p.name !== "credential" && p.name !== "options",
|
|
259
|
-
);
|
|
260
|
-
|
|
261
|
-
// Collect names of required parameters to avoid duplicates
|
|
262
|
-
const requiredParamNames = new Set(contextRequiredParam.map((p) => p.name));
|
|
263
|
-
|
|
264
|
-
// Also include optional parameters from clientInitialization that should be passed through
|
|
265
|
-
const contextOptionalParams = getClientParameters(client, dpgContext, {
|
|
266
|
-
optionalOnly: true,
|
|
267
|
-
onClientOnly: false,
|
|
268
|
-
}).filter((p) => {
|
|
269
|
-
const clientParamName = getClientParameterName(p);
|
|
270
|
-
return (
|
|
271
|
-
clientParamName !== "endpointParam" &&
|
|
272
|
-
clientParamName !== "credential" &&
|
|
273
|
-
clientParamName !== "endpoint" &&
|
|
274
|
-
!requiredParamNames.has(clientParamName) // Avoid duplicating required parameters
|
|
275
|
-
);
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
// Build context params, checking if param was already assigned as a required param
|
|
279
|
-
const allContextParams = [
|
|
280
|
-
...contextRequiredParam.map((p) => p.name),
|
|
281
|
-
...contextOptionalParams.map((p) => {
|
|
282
|
-
const clientParamName = getClientParameterName(p);
|
|
283
|
-
// If this param was already assigned (e.g., as a required param or in endpoint building), use the value directly
|
|
284
|
-
// Otherwise, get it from options
|
|
285
|
-
if (
|
|
286
|
-
requiredParamNames.has(clientParamName) ||
|
|
287
|
-
(assignedOptionalParams && assignedOptionalParams.has(clientParamName))
|
|
288
|
-
) {
|
|
289
|
-
return clientParamName;
|
|
290
|
-
}
|
|
291
|
-
return `${clientParamName}: options.${clientParamName}`;
|
|
292
|
-
}),
|
|
293
|
-
];
|
|
294
|
-
|
|
295
|
-
if (allContextParams.length) {
|
|
296
|
-
factoryFunction.addStatements(
|
|
297
|
-
`return { ...clientContext, ${allContextParams.join(", ")}} as ${rlcClientName};`,
|
|
298
|
-
);
|
|
299
|
-
} else {
|
|
300
|
-
factoryFunction.addStatements(`return clientContext;`);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
clientContextFile.fixMissingImports({}, { importModuleSpecifierEnding: "js" });
|
|
304
|
-
|
|
305
|
-
clientContextFile.fixUnusedIdentifiers();
|
|
306
|
-
return clientContextFile;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
function getDocsWithKnownVersion(
|
|
310
|
-
dpgContext: SdkContext,
|
|
311
|
-
param: SdkMethodParameter | SdkEndpointParameter | SdkCredentialParameter | SdkHttpParameter,
|
|
312
|
-
) {
|
|
313
|
-
const docs = getDocsFromDescription(param.doc);
|
|
314
|
-
if (param.name.toLowerCase() !== "apiversion") {
|
|
315
|
-
return docs;
|
|
316
|
-
}
|
|
317
|
-
const apiVersionEnum = getApiVersionEnum(dpgContext);
|
|
318
|
-
if (apiVersionEnum) {
|
|
319
|
-
const [_, knownValuesEnum] = buildEnumTypes(dpgContext, apiVersionEnum, true);
|
|
320
|
-
docs.push(
|
|
321
|
-
`Known values of {@link ${resolveReference(refkey(knownValuesEnum.name, "knownValues"))}} that the service accepts.`,
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
return docs;
|
|
325
|
-
}
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { InterfaceDeclarationStructure, SourceFile, StructureKind } from "ts-morph";
|
|
2
|
-
import { NameType, normalizeName } from "../rlc-common/index.js";
|
|
3
|
-
import {
|
|
4
|
-
getDeserializeExceptionHeadersPrivateFunction,
|
|
5
|
-
getDeserializeHeadersPrivateFunction,
|
|
6
|
-
getDeserializePrivateFunction,
|
|
7
|
-
getExpectedStatuses,
|
|
8
|
-
getOperationFunction,
|
|
9
|
-
getOperationOptionsName,
|
|
10
|
-
getSendPrivateFunction,
|
|
11
|
-
isLroAndPagingOperation,
|
|
12
|
-
isLroOnlyOperation,
|
|
13
|
-
} from "./helpers/operationHelpers.js";
|
|
14
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
SdkClientType,
|
|
18
|
-
SdkMethodParameter,
|
|
19
|
-
SdkServiceOperation,
|
|
20
|
-
} from "@azure-tools/typespec-client-generator-core";
|
|
21
|
-
import { useContext } from "../contextManager.js";
|
|
22
|
-
import { addDeclaration } from "../framework/declaration.js";
|
|
23
|
-
import { useDependencies } from "../framework/hooks/useDependencies.js";
|
|
24
|
-
import { resolveReference } from "../framework/reference.js";
|
|
25
|
-
import { refkey } from "../framework/refkey.js";
|
|
26
|
-
import { getModularClientOptions, isRLCMultiEndpoint } from "../utils/clientUtils.js";
|
|
27
|
-
import { SdkContext } from "../utils/interfaces.js";
|
|
28
|
-
import {
|
|
29
|
-
getMethodHierarchiesMap,
|
|
30
|
-
hasDualFormatSupport,
|
|
31
|
-
ServiceOperation,
|
|
32
|
-
} from "../utils/operationUtil.js";
|
|
33
|
-
import { getDocsFromDescription } from "./helpers/docsHelpers.js";
|
|
34
|
-
import { getOperationName } from "./helpers/namingHelpers.js";
|
|
35
|
-
import { OperationPathAndDeserDetails } from "./interfaces.js";
|
|
36
|
-
import { getTypeExpression } from "./type-expressions/get-type-expression.js";
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* This function creates a file under /api for each operation group.
|
|
40
|
-
* If there is no operation group in the TypeSpec program, we create a single
|
|
41
|
-
* file called operations.ts where all operations are generated.
|
|
42
|
-
*/
|
|
43
|
-
export function buildOperationFiles(
|
|
44
|
-
dpgContext: SdkContext,
|
|
45
|
-
clientMap: [string[], SdkClientType<SdkServiceOperation>],
|
|
46
|
-
emitterOptions: ModularEmitterOptions,
|
|
47
|
-
) {
|
|
48
|
-
const project = useContext("outputProject");
|
|
49
|
-
const [_, client] = clientMap;
|
|
50
|
-
const operationFiles: Set<SourceFile> = new Set();
|
|
51
|
-
const { subfolder, rlcClientName } = getModularClientOptions(clientMap);
|
|
52
|
-
const isMultiEndpoint = isRLCMultiEndpoint(dpgContext);
|
|
53
|
-
const clientType = isMultiEndpoint ? `Client.${rlcClientName}` : "Client";
|
|
54
|
-
const methodMap = getMethodHierarchiesMap(dpgContext, client);
|
|
55
|
-
for (const [prefixKey, operations] of methodMap) {
|
|
56
|
-
const prefixes = prefixKey.split("/");
|
|
57
|
-
const operationFileName =
|
|
58
|
-
prefixes.length > 0 && prefixKey !== ""
|
|
59
|
-
? `${prefixes
|
|
60
|
-
.map((hierarchy) => {
|
|
61
|
-
return normalizeName(hierarchy, NameType.File);
|
|
62
|
-
})
|
|
63
|
-
.join("/")}/operations`
|
|
64
|
-
: // When the program has no operation groups defined all operations are put
|
|
65
|
-
// into a nameless operation group. We'll call this operations.
|
|
66
|
-
"operations";
|
|
67
|
-
|
|
68
|
-
const srcPath = emitterOptions.modularOptions.sourceRoot;
|
|
69
|
-
const filepath = `${srcPath}/${
|
|
70
|
-
subfolder && subfolder !== "" ? subfolder + "/" : ""
|
|
71
|
-
}api/${operationFileName}.ts`;
|
|
72
|
-
|
|
73
|
-
const operationGroupFile = project.createSourceFile(filepath);
|
|
74
|
-
operations.forEach((op) => {
|
|
75
|
-
const operationDeclaration = getOperationFunction(dpgContext, [prefixes, op], clientType);
|
|
76
|
-
const sendOperationDeclaration = getSendPrivateFunction(
|
|
77
|
-
dpgContext,
|
|
78
|
-
[prefixes, op],
|
|
79
|
-
clientType,
|
|
80
|
-
client,
|
|
81
|
-
);
|
|
82
|
-
const deserializeOperationDeclaration = getDeserializePrivateFunction(dpgContext, [
|
|
83
|
-
prefixes,
|
|
84
|
-
op,
|
|
85
|
-
]);
|
|
86
|
-
const deserializeHeadersDeclaration = getDeserializeHeadersPrivateFunction(dpgContext, op);
|
|
87
|
-
const deserializeExceptionHeadersDeclaration = getDeserializeExceptionHeadersPrivateFunction(
|
|
88
|
-
dpgContext,
|
|
89
|
-
op,
|
|
90
|
-
);
|
|
91
|
-
const functionsToAdd = [sendOperationDeclaration, deserializeOperationDeclaration];
|
|
92
|
-
if (deserializeHeadersDeclaration) {
|
|
93
|
-
functionsToAdd.push(deserializeHeadersDeclaration);
|
|
94
|
-
}
|
|
95
|
-
if (deserializeExceptionHeadersDeclaration) {
|
|
96
|
-
functionsToAdd.push(deserializeExceptionHeadersDeclaration);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
operationGroupFile.addFunctions(functionsToAdd);
|
|
100
|
-
addDeclaration(operationGroupFile, operationDeclaration, refkey(op, "api"));
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
const indexPathPrefix = "../".repeat(prefixKey === "" ? 0 : prefixes.length) || "./";
|
|
104
|
-
operationGroupFile.addImportDeclaration({
|
|
105
|
-
namedImports: [`${rlcClientName} as Client`],
|
|
106
|
-
moduleSpecifier: `${indexPathPrefix}index.js`,
|
|
107
|
-
});
|
|
108
|
-
operationGroupFile.fixUnusedIdentifiers();
|
|
109
|
-
|
|
110
|
-
operationFiles.add(operationGroupFile);
|
|
111
|
-
}
|
|
112
|
-
return Array.from(operationFiles);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* This function generates the interfaces for each operation options
|
|
117
|
-
*/
|
|
118
|
-
export function buildOperationOptions(
|
|
119
|
-
context: SdkContext,
|
|
120
|
-
method: [string[], ServiceOperation],
|
|
121
|
-
sourceFile: SourceFile,
|
|
122
|
-
) {
|
|
123
|
-
const dependencies = useDependencies();
|
|
124
|
-
const operation = method[1];
|
|
125
|
-
const optionalParameters = operation.parameters
|
|
126
|
-
.filter(
|
|
127
|
-
(p) =>
|
|
128
|
-
p.onClient === false &&
|
|
129
|
-
!(p.isGeneratedName && (p.name === "contentType" || p.name !== "accept")),
|
|
130
|
-
)
|
|
131
|
-
.filter((p) => p.optional || p.clientDefaultValue);
|
|
132
|
-
const options: SdkMethodParameter[] = [...optionalParameters];
|
|
133
|
-
|
|
134
|
-
const name = getOperationOptionsName(method, true);
|
|
135
|
-
const lroOptions = {
|
|
136
|
-
name: "updateIntervalInMs",
|
|
137
|
-
type: "number",
|
|
138
|
-
hasQuestionToken: true,
|
|
139
|
-
docs: ["Delay to wait until next poll, in milliseconds."],
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
// Check if this operation supports both JSON and XML content types
|
|
143
|
-
const bodyContentTypes = operation.operation.bodyParam?.contentTypes ?? [];
|
|
144
|
-
const isDualFormat = hasDualFormatSupport(bodyContentTypes);
|
|
145
|
-
|
|
146
|
-
// Content type option for dual-format operations
|
|
147
|
-
const contentTypeOption = {
|
|
148
|
-
name: "contentType",
|
|
149
|
-
type: "string",
|
|
150
|
-
hasQuestionToken: true,
|
|
151
|
-
docs: [
|
|
152
|
-
'The content type for the request body. Defaults to "application/json". Use "application/xml" for XML serialization.',
|
|
153
|
-
],
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
// handle optional body parameter
|
|
157
|
-
// if (operation.operation.bodyParam?.optional === true) {
|
|
158
|
-
// options.push(operation.operation.bodyParam);
|
|
159
|
-
// }
|
|
160
|
-
const operationOptionsReference = resolveReference(dependencies.OperationOptions);
|
|
161
|
-
|
|
162
|
-
// Build the additional options array
|
|
163
|
-
const additionalOptions: {
|
|
164
|
-
name: string;
|
|
165
|
-
type: string;
|
|
166
|
-
hasQuestionToken: boolean;
|
|
167
|
-
docs: string[];
|
|
168
|
-
}[] = [];
|
|
169
|
-
if (isLroOnlyOperation(operation) || isLroAndPagingOperation(operation)) {
|
|
170
|
-
additionalOptions.push(lroOptions);
|
|
171
|
-
}
|
|
172
|
-
if (isDualFormat) {
|
|
173
|
-
additionalOptions.push(contentTypeOption);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
const operationOptionsInterface: InterfaceDeclarationStructure = {
|
|
177
|
-
kind: StructureKind.Interface,
|
|
178
|
-
name,
|
|
179
|
-
isExported: true,
|
|
180
|
-
extends: [operationOptionsReference],
|
|
181
|
-
properties: additionalOptions.concat(
|
|
182
|
-
options.map((p) => {
|
|
183
|
-
return {
|
|
184
|
-
docs: getDocsFromDescription(p.doc),
|
|
185
|
-
hasQuestionToken: true,
|
|
186
|
-
type: getTypeExpression(context, p.type, { isOptional: true }),
|
|
187
|
-
name: normalizeName(p.name, NameType.Parameter),
|
|
188
|
-
};
|
|
189
|
-
}),
|
|
190
|
-
),
|
|
191
|
-
docs: [`Optional parameters.`],
|
|
192
|
-
};
|
|
193
|
-
addDeclaration(sourceFile, operationOptionsInterface, refkey(method[1], "operationOptions"));
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* This function creates a map of operation file path to operation names.
|
|
198
|
-
*/
|
|
199
|
-
export function buildLroDeserDetailMap(
|
|
200
|
-
context: SdkContext,
|
|
201
|
-
client: SdkClientType<SdkServiceOperation>,
|
|
202
|
-
) {
|
|
203
|
-
const map = new Map<string, OperationPathAndDeserDetails[]>();
|
|
204
|
-
const existingNames = new Set<string>();
|
|
205
|
-
const methodMap = getMethodHierarchiesMap(context, client);
|
|
206
|
-
for (const [prefixKey, operations] of methodMap) {
|
|
207
|
-
const prefixes = prefixKey.split("/");
|
|
208
|
-
const lroOperations = operations.filter((o) => isLroOnlyOperation(o));
|
|
209
|
-
// skip this operation group if it has no LRO operations
|
|
210
|
-
if (lroOperations.length === 0) {
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
const operationFileName =
|
|
215
|
-
prefixes.length > 0 && prefixKey !== ""
|
|
216
|
-
? `${prefixes
|
|
217
|
-
.map((hierarchy) => {
|
|
218
|
-
return normalizeName(hierarchy, NameType.File);
|
|
219
|
-
})
|
|
220
|
-
.join("/")}/operations`
|
|
221
|
-
: // When the program has no operation groups defined all operations are put
|
|
222
|
-
// into a nameless operation group. We'll call this operations.
|
|
223
|
-
"operations";
|
|
224
|
-
map.set(
|
|
225
|
-
`./api/${operationFileName}.js`,
|
|
226
|
-
lroOperations.map((o) => {
|
|
227
|
-
const { name } = getOperationName(o);
|
|
228
|
-
const deserName = `_${name}Deserialize`;
|
|
229
|
-
let renamedDeserName = undefined;
|
|
230
|
-
if (existingNames.has(deserName)) {
|
|
231
|
-
const newName = `${name}Deserialize${normalizeName(
|
|
232
|
-
operationFileName.split("/").slice(0, -1).join("_"),
|
|
233
|
-
NameType.Interface,
|
|
234
|
-
)}`;
|
|
235
|
-
renamedDeserName = `_${newName}`;
|
|
236
|
-
}
|
|
237
|
-
existingNames.add(deserName);
|
|
238
|
-
return {
|
|
239
|
-
path: `${o.operation.verb.toUpperCase()} ${o.operation.path}`,
|
|
240
|
-
expectedStatusesExpression: getExpectedStatuses(o),
|
|
241
|
-
deserName,
|
|
242
|
-
renamedDeserName,
|
|
243
|
-
};
|
|
244
|
-
}),
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
return map;
|
|
248
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { NameType } from "../rlc-common/index.js";
|
|
2
|
-
|
|
3
|
-
import path from "path/posix";
|
|
4
|
-
import { useContext } from "../contextManager.js";
|
|
5
|
-
import { getClientHierarchyMap, getModularClientOptions } from "../utils/clientUtils.js";
|
|
6
|
-
import { SdkContext } from "../utils/interfaces.js";
|
|
7
|
-
import { getMethodHierarchiesMap } from "../utils/operationUtil.js";
|
|
8
|
-
import { getClassicalLayerPrefix } from "./helpers/namingHelpers.js";
|
|
9
|
-
import { ModularEmitterOptions } from "./interfaces.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Computes the relative path prefix (e.g. `./src` or `./src/generated`) from
|
|
13
|
-
* the project root to the modular sources directory. This prefix is used when
|
|
14
|
-
* building export map entries so that they always point to the correct folder
|
|
15
|
-
* even when the generated code lives under `src/generated` instead of `src`.
|
|
16
|
-
*/
|
|
17
|
-
function getSourceRootPrefix(emitterOptions: ModularEmitterOptions, context: SdkContext): string {
|
|
18
|
-
const sourceRoot = emitterOptions.modularOptions.sourceRoot.replace(/\\/g, "/");
|
|
19
|
-
const rootDir = (context.generationPathDetail?.rootDir ?? "").replace(/\\/g, "/");
|
|
20
|
-
|
|
21
|
-
if (rootDir && sourceRoot.startsWith(rootDir)) {
|
|
22
|
-
const relativePath = path.relative(rootDir, sourceRoot).replace(/\\/g, "/");
|
|
23
|
-
return `./${relativePath}`;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return "./src";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function buildExportsForMultiClient(
|
|
30
|
-
context: SdkContext,
|
|
31
|
-
emitterOptions: ModularEmitterOptions,
|
|
32
|
-
packageInfo: any,
|
|
33
|
-
) {
|
|
34
|
-
const srcPrefix = getSourceRootPrefix(emitterOptions, context);
|
|
35
|
-
const clientMap = getClientHierarchyMap(context);
|
|
36
|
-
let hasTopLevelClient = false;
|
|
37
|
-
for (const [hierarchy, client] of clientMap) {
|
|
38
|
-
const methodMap = getMethodHierarchiesMap(context, client);
|
|
39
|
-
if (hierarchy.length === 0) {
|
|
40
|
-
hasTopLevelClient = true;
|
|
41
|
-
}
|
|
42
|
-
const { subfolder } = getModularClientOptions([hierarchy, client]);
|
|
43
|
-
if (subfolder !== "" && methodMap.size > 0) {
|
|
44
|
-
packageInfo.exports[`./${subfolder}`] = `${srcPrefix}/${subfolder}/index.ts`;
|
|
45
|
-
|
|
46
|
-
packageInfo.exports[`./${subfolder}/api`] = `${srcPrefix}/${subfolder}/api/index.ts`;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (!hasTopLevelClient) {
|
|
50
|
-
delete packageInfo.exports["./api"];
|
|
51
|
-
}
|
|
52
|
-
if (emitterOptions.options.hierarchyClient) {
|
|
53
|
-
// TODO: support api subpath exports for multi-service. Skip for now. https://github.com/Azure/autorest.typescript/issues/3717
|
|
54
|
-
if (!emitterOptions.options.isMultiService) {
|
|
55
|
-
for (const flattenedClient of clientMap) {
|
|
56
|
-
const { subfolder } = getModularClientOptions(flattenedClient);
|
|
57
|
-
const client = flattenedClient[1];
|
|
58
|
-
const methodMap = getMethodHierarchiesMap(context, client);
|
|
59
|
-
for (const [prefixKey, _] of methodMap) {
|
|
60
|
-
const prefixes = prefixKey.split("/");
|
|
61
|
-
if (prefixKey === "") {
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
const subApiPath = `api/${getClassicalLayerPrefix(prefixes, NameType.File, "/")}`;
|
|
65
|
-
|
|
66
|
-
packageInfo.exports[`./${subfolder ? subfolder + "/" : ""}${subApiPath}`] =
|
|
67
|
-
`${srcPrefix}/${subfolder ? subfolder + "/" : ""}${subApiPath}/index.ts`;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
delete packageInfo.exports["./models"];
|
|
72
|
-
const modelSubpaths = getModelSubpaths(emitterOptions);
|
|
73
|
-
for (const modelSubpath of modelSubpaths) {
|
|
74
|
-
packageInfo.exports[`./${modelSubpath.replace("/index.ts", "")}`] =
|
|
75
|
-
`${srcPrefix}/${modelSubpath}`;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return packageInfo.exports;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function getModuleExports(context: SdkContext, emitterOptions: ModularEmitterOptions) {
|
|
83
|
-
const srcPrefix = getSourceRootPrefix(emitterOptions, context);
|
|
84
|
-
const exports: Record<string, any> = {
|
|
85
|
-
exports: {
|
|
86
|
-
".": `${srcPrefix}/index.ts`,
|
|
87
|
-
"./models": `${srcPrefix}/models/index.ts`,
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
exports["exports"]["./api"] = `${srcPrefix}/api/index.ts`;
|
|
91
|
-
|
|
92
|
-
return buildExportsForMultiClient(context, emitterOptions, exports);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function getModelSubpaths(emitterOptions: ModularEmitterOptions) {
|
|
96
|
-
const outputProject = useContext("outputProject");
|
|
97
|
-
const modelFiles = outputProject.getSourceFiles(
|
|
98
|
-
path.join(emitterOptions.modularOptions.sourceRoot.replace(/\\/g, "/"), `models/**/*.ts`),
|
|
99
|
-
);
|
|
100
|
-
const subpath = new Set<string>();
|
|
101
|
-
for (const modelFile of modelFiles) {
|
|
102
|
-
const filepath = modelFile.getFilePath().replace(/\\/g, "/");
|
|
103
|
-
if (!filepath.endsWith("index.ts")) {
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
subpath.add(
|
|
107
|
-
path.relative(emitterOptions.modularOptions.sourceRoot.replace(/\\/g, "/"), filepath),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
return Array.from(subpath);
|
|
111
|
-
}
|