@azure-tools/typespec-ts 0.55.0-dev.6 → 0.55.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -10
- package/README.md +90 -51
- 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.d.ts +1 -1
- package/dist/src/framework/hooks/binder.d.ts.map +1 -1
- package/dist/src/framework/hooks/binder.js +6 -7
- 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/framework/load-static-helpers.d.ts +4 -1
- package/dist/src/framework/load-static-helpers.d.ts.map +1 -1
- package/dist/src/framework/load-static-helpers.js +26 -34
- package/dist/src/framework/load-static-helpers.js.map +1 -1
- package/dist/src/framework/sample.js +1 -1
- package/dist/src/framework/sample.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +105 -115
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +1 -7
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +30 -59
- package/dist/src/lib.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 +237 -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 +275 -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 +15 -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 +849 -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 +482 -0
- package/dist/src/modular/emit-samples.js.map +1 -0
- package/dist/src/modular/emit-tests.d.ts +8 -0
- package/dist/src/modular/emit-tests.d.ts.map +1 -0
- package/dist/src/modular/emit-tests.js +165 -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 +249 -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 +622 -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 +375 -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 +180 -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 +219 -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 +23 -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 +410 -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 +338 -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 +59 -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 +140 -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 +64 -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 +44 -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 +17 -0
- package/dist/src/rlc-common/helpers/imports-util.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/imports-util.js +151 -0
- package/dist/src/rlc-common/helpers/imports-util.js.map +1 -0
- package/dist/src/rlc-common/helpers/name-constructors.d.ts +33 -0
- package/dist/src/rlc-common/helpers/name-constructors.d.ts.map +1 -0
- package/dist/src/rlc-common/helpers/name-constructors.js +51 -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/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 +9 -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 +37 -39
- package/dist/src/rlc-common/index.d.ts.map +1 -1
- package/dist/src/rlc-common/index.js +37 -39
- package/dist/src/rlc-common/index.js.map +1 -1
- package/dist/src/rlc-common/interfaces.d.ts +2 -10
- package/dist/src/rlc-common/interfaces.d.ts.map +1 -1
- package/dist/src/rlc-common/interfaces.js.map +1 -1
- package/dist/src/rlc-common/metadata/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 +18 -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 +41 -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 +161 -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 +413 -0
- package/dist/src/rlc-common/metadata/build-readme-file.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 +14 -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 +51 -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 +129 -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 +73 -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 +14 -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 +14 -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 +204 -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 +155 -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/package-common.d.ts +44 -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 +103 -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 +14 -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 +11 -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 +23 -0
- package/dist/src/rlc-common/test/build-snippets.js.map +1 -0
- package/dist/src/rlc-common/test/template.d.ts +2 -2
- package/dist/src/rlc-common/test/template.d.ts.map +1 -1
- package/dist/src/rlc-common/test/template.js +1 -31
- package/dist/src/rlc-common/test/template.js.map +1 -1
- 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 +298 -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 +66 -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.d.ts.map +1 -1
- package/dist/src/transform/transform.js +14 -15
- 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 +324 -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 +73 -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 +57 -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/src/utils/resolve-project-root.d.ts +6 -4
- package/dist/src/utils/resolve-project-root.d.ts.map +1 -1
- package/dist/src/utils/resolve-project-root.js +11 -18
- package/dist/src/utils/resolve-project-root.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -47
- package/src/context-manager.ts +101 -0
- package/src/framework/hooks/binder.ts +7 -8
- package/src/framework/hooks/sdk-types.ts +218 -0
- package/src/framework/hooks/use-dependencies.ts +16 -0
- package/src/framework/load-static-helpers.ts +38 -41
- package/src/framework/sample.ts +1 -1
- package/src/index.ts +122 -122
- package/src/lib.ts +32 -67
- 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 +317 -0
- package/src/modular/build-operations.ts +248 -0
- package/src/modular/build-project-files.ts +118 -0
- package/src/modular/build-restore-poller.ts +242 -0
- package/src/modular/build-root-index.ts +403 -0
- package/src/modular/build-subpath-index.ts +152 -0
- package/src/modular/emit-logger-file.ts +20 -0
- package/src/modular/emit-models-options.ts +56 -0
- package/src/modular/emit-models.ts +1080 -0
- package/src/modular/emit-samples.ts +659 -0
- package/src/modular/emit-tests.ts +211 -0
- package/src/modular/helpers/classical-operation-helpers.ts +375 -0
- package/src/modular/helpers/client-helpers.ts +352 -0
- package/src/modular/helpers/example-value-helpers.ts +836 -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 +226 -0
- package/src/rlc-common/build-client.ts +463 -0
- package/src/rlc-common/build-index-file.ts +220 -0
- package/src/rlc-common/build-is-unexpected-helper.ts +241 -0
- package/src/rlc-common/build-logger.ts +29 -0
- package/src/rlc-common/build-method-shortcuts.ts +71 -0
- package/src/rlc-common/build-object-types.ts +591 -0
- package/src/rlc-common/build-paginate-helper.ts +31 -0
- package/src/rlc-common/build-parameter-types.ts +460 -0
- package/src/rlc-common/build-polling-helper.ts +80 -0
- package/src/rlc-common/build-response-types.ts +170 -0
- package/src/rlc-common/build-samples.ts +32 -0
- package/src/rlc-common/build-schema-type.ts +79 -0
- package/src/rlc-common/build-serialize-helper.ts +49 -0
- package/src/rlc-common/build-top-level-index-file.ts +51 -0
- package/src/rlc-common/helpers/imports-util.ts +172 -0
- package/src/rlc-common/helpers/name-constructors.ts +95 -0
- package/src/rlc-common/helpers/operation-helpers.ts +138 -0
- package/src/rlc-common/helpers/path-utils.ts +8 -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 +37 -39
- package/src/rlc-common/interfaces.ts +2 -12
- package/src/rlc-common/metadata/build-api-extractor-config.ts +22 -0
- package/src/rlc-common/metadata/build-es-lint-config.ts +45 -0
- package/src/rlc-common/metadata/build-package-file.ts +193 -0
- package/src/rlc-common/metadata/build-readme-file.ts +508 -0
- package/src/rlc-common/metadata/build-sample-env-file.ts +18 -0
- package/src/rlc-common/metadata/build-test-config.ts +67 -0
- package/src/rlc-common/metadata/build-ts-config.ts +177 -0
- package/src/rlc-common/metadata/build-warp-config.ts +87 -0
- package/src/rlc-common/metadata/package-json/azure-package-common.ts +20 -0
- package/src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts +180 -0
- package/src/rlc-common/metadata/package-json/package-common.ts +138 -0
- package/src/rlc-common/static/polling-content.ts +225 -0
- package/src/rlc-common/test/build-recorded-client.ts +15 -0
- package/src/rlc-common/test/build-sample-test.ts +12 -0
- package/src/rlc-common/test/build-snippets.ts +26 -0
- package/src/rlc-common/test/template.ts +1 -31
- package/src/rlc-common/transform-sample-groups.ts +383 -0
- package/src/transform/transform-api-version-info.ts +103 -0
- package/src/transform/transform-helper-function-details.ts +79 -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 +14 -15
- package/src/transform/transfrom-rlc-options.ts +407 -0
- package/src/utils/cross-language-def.ts +66 -0
- package/src/utils/emit-util.ts +80 -0
- package/src/utils/file-system-utils.ts +68 -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/src/utils/resolve-project-root.ts +11 -24
- 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/dirname.d.ts +0 -9
- package/dist/src/utils/dirname.d.ts.map +0 -1
- package/dist/src/utils/dirname.js +0 -12
- package/dist/src/utils/dirname.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/importsUtil.ts +0 -184
- package/src/rlc-common/helpers/nameConstructors.ts +0 -110
- package/src/rlc-common/helpers/operationHelpers.ts +0 -138
- package/src/rlc-common/helpers/packageUtil.ts +0 -13
- package/src/rlc-common/helpers/pathUtils.ts +0 -10
- package/src/rlc-common/helpers/shortcutMethods.ts +0 -58
- package/src/rlc-common/helpers/valueGenerationUtil.ts +0 -234
- package/src/rlc-common/metadata/buildApiExtractorConfig.ts +0 -64
- package/src/rlc-common/metadata/buildESLintConfig.ts +0 -84
- 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/buildSampleEnvFile.ts +0 -21
- package/src/rlc-common/metadata/buildTestConfig.ts +0 -72
- package/src/rlc-common/metadata/buildTsConfig.ts +0 -219
- package/src/rlc-common/metadata/buildWarpConfig.ts +0 -91
- 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/metadata/packageJson/packageCommon.ts +0 -235
- package/src/rlc-common/static/pollingContent.ts +0 -225
- package/src/rlc-common/test/buildRecordedClient.ts +0 -18
- package/src/rlc-common/test/buildSampleTest.ts +0 -15
- 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/dirname.ts +0 -12
- package/src/utils/emitUtil.ts +0 -92
- package/src/utils/fileSystemUtils.ts +0 -69
- 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/{nameUtils.ts → name-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/{buildChangelogFile.ts → build-changelog-file.ts} +0 -0
- /package/src/rlc-common/metadata/{buildLicenseFile.ts → build-license-file.ts} +0 -0
- /package/src/rlc-common/metadata/{buildVitestConfig.ts → build-vitest-config.ts} +0 -0
- /package/src/rlc-common/static/{paginateContent.ts → paginate-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/utils/{clientUtils.ts → client-utils.ts} +0 -0
- /package/src/utils/{credentialUtils.ts → credential-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,138 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { MethodSignatureStructure, OptionalKind, ParameterDeclarationStructure } from "ts-morph";
|
|
5
|
-
import {
|
|
6
|
-
Methods,
|
|
7
|
-
ObjectSchema,
|
|
8
|
-
ParameterMetadata,
|
|
9
|
-
PathParameter,
|
|
10
|
-
RLCModel,
|
|
11
|
-
Schema,
|
|
12
|
-
SchemaContext,
|
|
13
|
-
} from "../interfaces.js";
|
|
14
|
-
import { NameType, normalizeName, pascalCase } from "./nameUtils.js";
|
|
15
|
-
import { isObjectSchema } from "./schemaHelpers.js";
|
|
16
|
-
|
|
17
|
-
export function buildMethodDefinitions(
|
|
18
|
-
methods: Methods,
|
|
19
|
-
pathParams: PathParameter[] = [],
|
|
20
|
-
): OptionalKind<MethodSignatureStructure>[] {
|
|
21
|
-
const methodDefinitions: OptionalKind<MethodSignatureStructure>[] = [];
|
|
22
|
-
for (const key of Object.keys(methods)) {
|
|
23
|
-
const verbMethods = methods[key];
|
|
24
|
-
if (!verbMethods) {
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
for (const method of verbMethods) {
|
|
28
|
-
const description = method.description;
|
|
29
|
-
const areAllOptional = method.hasOptionalOptions;
|
|
30
|
-
|
|
31
|
-
methodDefinitions.push({
|
|
32
|
-
name: key,
|
|
33
|
-
...(description && { docs: [{ description }] }),
|
|
34
|
-
parameters: [
|
|
35
|
-
...getPathParamDefinitions(pathParams),
|
|
36
|
-
{
|
|
37
|
-
name: "options",
|
|
38
|
-
hasQuestionToken: areAllOptional,
|
|
39
|
-
type: pascalCase(method.optionsName),
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
returnType: `StreamableMethod<${method.returnType}>`,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return methodDefinitions;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function getPathParamDefinitions(
|
|
51
|
-
pathParams: PathParameter[],
|
|
52
|
-
): OptionalKind<ParameterDeclarationStructure>[] {
|
|
53
|
-
return pathParams.map(({ name, type, description }) => {
|
|
54
|
-
return {
|
|
55
|
-
name: normalizeName(name, NameType.Parameter),
|
|
56
|
-
type,
|
|
57
|
-
description,
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function hasPagingOperations(model: RLCModel) {
|
|
63
|
-
return Boolean(model.helperDetails?.hasPaging);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function hasPollingOperations(model: RLCModel) {
|
|
67
|
-
return Boolean(model.helperDetails?.hasLongRunning);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function hasMultiCollection(model: RLCModel) {
|
|
71
|
-
return Boolean(model.helperDetails?.hasMultiCollection);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function hasPipeCollection(model: RLCModel) {
|
|
75
|
-
return Boolean(model.helperDetails?.hasPipeCollection);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function hasSsvCollection(model: RLCModel) {
|
|
79
|
-
return Boolean(model.helperDetails?.hasSsvCollection);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function hasTsvCollection(model: RLCModel) {
|
|
83
|
-
return Boolean(model.helperDetails?.hasTsvCollection);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function hasCsvCollection(model: RLCModel) {
|
|
87
|
-
return Boolean(model.helperDetails?.hasCsvCollection);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function hasUnexpectedHelper(model: RLCModel) {
|
|
91
|
-
const pathDictionary = model.paths;
|
|
92
|
-
for (const details of Object.values(pathDictionary)) {
|
|
93
|
-
for (const methodDetails of Object.values(details.methods)) {
|
|
94
|
-
const firstMethod = methodDetails[0];
|
|
95
|
-
if (!firstMethod) {
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
const successTypes = firstMethod.responseTypes.success;
|
|
99
|
-
const errorTypes = firstMethod.responseTypes.error;
|
|
100
|
-
|
|
101
|
-
if (successTypes.length > 0 && errorTypes.length > 0 && !!errorTypes[0]) {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function hasInputModels(model: RLCModel) {
|
|
110
|
-
return hasSchemaContextObject(model, [SchemaContext.Input]);
|
|
111
|
-
}
|
|
112
|
-
export function hasOutputModels(model: RLCModel) {
|
|
113
|
-
return hasSchemaContextObject(model, [SchemaContext.Output, SchemaContext.Exception]);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function hasSchemaContextObject(model: RLCModel, schemaUsage: SchemaContext[]) {
|
|
117
|
-
const objectSchemas: ObjectSchema[] = (model.schemas ?? []).filter(
|
|
118
|
-
(o) => isObjectSchema(o) && (o as ObjectSchema).usage?.some((u) => schemaUsage.includes(u)),
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
return objectSchemas.length > 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function getGeneratedWrapperTypes(params: ParameterMetadata[] | PathParameter[]): Schema[] {
|
|
125
|
-
const wrapperTypes = params
|
|
126
|
-
.map((qp) => (isParameterMetadata(qp) ? qp.param.wrapperType : qp.wrapperType))
|
|
127
|
-
.filter((v) => v !== undefined);
|
|
128
|
-
const wrapperFromObjects = wrapperTypes.filter((wrap) => wrap.type === "object");
|
|
129
|
-
const wrapperFromUnions = wrapperTypes
|
|
130
|
-
.filter((wrap) => wrap.type === "union")
|
|
131
|
-
.flatMap((wrapperType) => wrapperType?.enum ?? [])
|
|
132
|
-
.filter((v) => v.type === "object");
|
|
133
|
-
return [...wrapperFromUnions, ...wrapperFromObjects];
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function isParameterMetadata(param: ParameterMetadata | PathParameter): param is ParameterMetadata {
|
|
137
|
-
return (param as any).param !== undefined;
|
|
138
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RLCModel, RLCOptions } from "../interfaces.js";
|
|
2
|
-
|
|
3
|
-
export function isAzurePackage(model: { options?: RLCOptions }): boolean {
|
|
4
|
-
return Boolean(model.options?.flavor === "azure");
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function isAzureMonorepoPackage(model: RLCModel): boolean {
|
|
8
|
-
return Boolean(model.options?.azureSdkForJs) && isAzurePackage(model);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function isAzureStandalonePackage(model: RLCModel): boolean {
|
|
12
|
-
return isAzurePackage(model) && !model.options?.azureSdkForJs;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as path from "path";
|
|
2
|
-
|
|
3
|
-
export function getRelativePartFromSrcPath(srcPath: string, isModularLibrary: boolean = false) {
|
|
4
|
-
const sep = srcPath.includes(path.sep + "src") ? path.sep : "/";
|
|
5
|
-
let relativePart = srcPath.substring(srcPath.indexOf(sep + "src") + 4);
|
|
6
|
-
if (isModularLibrary) {
|
|
7
|
-
relativePart = relativePart.substring(srcPath.indexOf(sep + "rest"), +5);
|
|
8
|
-
}
|
|
9
|
-
return relativePart.startsWith(sep) ? relativePart.substring(1) : relativePart;
|
|
10
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { InterfaceDeclarationStructure, MethodSignatureStructure, OptionalKind } from "ts-morph";
|
|
5
|
-
import { PathMetadata, Paths } from "../interfaces.js";
|
|
6
|
-
import { NameType, normalizeName } from "./nameUtils.js";
|
|
7
|
-
import { buildMethodDefinitions } from "./operationHelpers.js";
|
|
8
|
-
|
|
9
|
-
export function generateMethodShortcuts(
|
|
10
|
-
paths: Paths,
|
|
11
|
-
): OptionalKind<InterfaceDeclarationStructure>[] {
|
|
12
|
-
const keys: Record<string, OptionalKind<MethodSignatureStructure>[]> = {};
|
|
13
|
-
for (const path in paths) {
|
|
14
|
-
const pathMetadata = paths[path];
|
|
15
|
-
if (!pathMetadata) {
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
18
|
-
const groupName = pathMetadata.operationGroupName;
|
|
19
|
-
const definitions = buildOperationDefinitions(pathMetadata);
|
|
20
|
-
if (!keys[groupName]) {
|
|
21
|
-
keys[groupName] = definitions;
|
|
22
|
-
} else {
|
|
23
|
-
keys[groupName] = [...keys[groupName], ...definitions];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const interfaces: OptionalKind<InterfaceDeclarationStructure>[] = [];
|
|
28
|
-
|
|
29
|
-
for (const interfaceName in keys) {
|
|
30
|
-
const methods = keys[interfaceName];
|
|
31
|
-
interfaces.push({
|
|
32
|
-
name: `${interfaceName}Operations`,
|
|
33
|
-
methods: methods,
|
|
34
|
-
isExported: true,
|
|
35
|
-
docs: [`Contains operations for ${interfaceName} operations`],
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return interfaces;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function buildOperationDefinitions(path: PathMetadata): OptionalKind<MethodSignatureStructure>[] {
|
|
43
|
-
let ops: OptionalKind<MethodSignatureStructure>[] = [];
|
|
44
|
-
|
|
45
|
-
for (const verb in path.methods) {
|
|
46
|
-
const methods = path.methods[verb];
|
|
47
|
-
if (!methods) {
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
for (const method of methods) {
|
|
51
|
-
const name = normalizeName(method.operationName, NameType.Property);
|
|
52
|
-
const pathParams = path.pathParameters;
|
|
53
|
-
const methodDefinitions = buildMethodDefinitions({ [name]: [method] }, pathParams);
|
|
54
|
-
ops = [...ops, ...methodDefinitions];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return ops;
|
|
58
|
-
}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { getImmediateParentsNames } from "../buildObjectTypes.js";
|
|
5
|
-
import {
|
|
6
|
-
ArraySchema,
|
|
7
|
-
DictionarySchema,
|
|
8
|
-
ObjectSchema,
|
|
9
|
-
Schema,
|
|
10
|
-
SchemaContext,
|
|
11
|
-
} from "../interfaces.js";
|
|
12
|
-
import {
|
|
13
|
-
TypeScriptType,
|
|
14
|
-
getArrayObjectType,
|
|
15
|
-
getNativeArrayType,
|
|
16
|
-
getRecordType,
|
|
17
|
-
getUnionType,
|
|
18
|
-
isArrayObject,
|
|
19
|
-
isNativeArray,
|
|
20
|
-
leaveBracket,
|
|
21
|
-
leaveStringQuotes,
|
|
22
|
-
toTypeScriptTypeFromName,
|
|
23
|
-
toTypeScriptTypeFromSchema,
|
|
24
|
-
} from "./typeUtil.js";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Generate parameter type value for the given type and parameter name
|
|
28
|
-
* @param type the typescript type
|
|
29
|
-
* @param parameterName the parameter name
|
|
30
|
-
* @param schemaMap the schema info to help generate the value
|
|
31
|
-
* @param path optional path to help detect self reference
|
|
32
|
-
* @param _allowMockValue the flag to indicate whether to allow mock value, currently we always generate mock value
|
|
33
|
-
* @returns
|
|
34
|
-
*/
|
|
35
|
-
export function generateParameterTypeValue(
|
|
36
|
-
type: string,
|
|
37
|
-
parameterName: string,
|
|
38
|
-
schemaMap: Map<string, Schema>,
|
|
39
|
-
path: Set<string> = new Set(),
|
|
40
|
-
_allowMockValue = true,
|
|
41
|
-
): string | undefined {
|
|
42
|
-
type = leaveBracket(type?.trim());
|
|
43
|
-
let tsType: TypeScriptType | undefined;
|
|
44
|
-
// Give priority to suggest the ts-type from schema
|
|
45
|
-
if (schemaMap.has(type)) {
|
|
46
|
-
tsType = toTypeScriptTypeFromSchema(schemaMap.get(type)!);
|
|
47
|
-
}
|
|
48
|
-
// Fallback to suggest ts-type from the type iteself
|
|
49
|
-
if (!tsType) {
|
|
50
|
-
tsType = toTypeScriptTypeFromName(type);
|
|
51
|
-
}
|
|
52
|
-
switch (tsType) {
|
|
53
|
-
case TypeScriptType.string:
|
|
54
|
-
return `"{Your ${leaveStringQuotes(parameterName)}}"`;
|
|
55
|
-
case TypeScriptType.number:
|
|
56
|
-
return "123";
|
|
57
|
-
case TypeScriptType.boolean:
|
|
58
|
-
return "true";
|
|
59
|
-
case TypeScriptType.date:
|
|
60
|
-
return "new Date()";
|
|
61
|
-
case TypeScriptType.unknown:
|
|
62
|
-
return `"Unknown Type"`;
|
|
63
|
-
case TypeScriptType.object: {
|
|
64
|
-
return generateObjectValues(type, parameterName, schemaMap, path);
|
|
65
|
-
}
|
|
66
|
-
case TypeScriptType.array: {
|
|
67
|
-
return generateArrayValues(type, parameterName, schemaMap, path);
|
|
68
|
-
}
|
|
69
|
-
case TypeScriptType.record: {
|
|
70
|
-
return generateRecordValues(type, parameterName, schemaMap, path);
|
|
71
|
-
}
|
|
72
|
-
case TypeScriptType.enum: {
|
|
73
|
-
return mockEnumValues(type, parameterName, schemaMap, path);
|
|
74
|
-
}
|
|
75
|
-
case TypeScriptType.union: {
|
|
76
|
-
return mockUnionValues(type, parameterName, schemaMap, path);
|
|
77
|
-
}
|
|
78
|
-
case TypeScriptType.constant:
|
|
79
|
-
return type;
|
|
80
|
-
}
|
|
81
|
-
return `undefined /**FIXME */`;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function mockEnumValues(
|
|
85
|
-
type: string,
|
|
86
|
-
parameterName: string,
|
|
87
|
-
schemaMap: Map<string, Schema>,
|
|
88
|
-
path: Set<string> = new Set(),
|
|
89
|
-
) {
|
|
90
|
-
const schema = schemaMap.get(type);
|
|
91
|
-
if (schema && schema.enum && schema.enum.length > 0) {
|
|
92
|
-
return schema.enum[0].type;
|
|
93
|
-
}
|
|
94
|
-
return generateParameterTypeValue(getUnionType(type), parameterName, schemaMap, path);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function mockUnionValues(
|
|
98
|
-
type: string,
|
|
99
|
-
parameterName: string,
|
|
100
|
-
schemaMap: Map<string, Schema>,
|
|
101
|
-
path: Set<string> = new Set(),
|
|
102
|
-
) {
|
|
103
|
-
const schema = schemaMap.get(type);
|
|
104
|
-
if (schema && schema.enum && schema.enum.length > 0) {
|
|
105
|
-
addToSchemaMap(schemaMap, schema.enum[0]);
|
|
106
|
-
return generateParameterTypeValue(
|
|
107
|
-
getAccurateTypeName(schema.enum[0]) ?? schema.enum[0],
|
|
108
|
-
parameterName,
|
|
109
|
-
schemaMap,
|
|
110
|
-
path,
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
return generateParameterTypeValue(getUnionType(type), parameterName, schemaMap, path);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function generateRecordValues(
|
|
117
|
-
type: string,
|
|
118
|
-
parameterName: string,
|
|
119
|
-
schemaMap: Map<string, Schema>,
|
|
120
|
-
path: Set<string> = new Set(),
|
|
121
|
-
) {
|
|
122
|
-
let recordType = getRecordType(type);
|
|
123
|
-
const schema = schemaMap.get(type) as DictionarySchema;
|
|
124
|
-
if (schema && schema.additionalProperties) {
|
|
125
|
-
recordType = getAccurateTypeName(schema.additionalProperties);
|
|
126
|
-
addToSchemaMap(schemaMap, schema.additionalProperties);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return recordType
|
|
130
|
-
? `{"key": ${generateParameterTypeValue(recordType, parameterName, schemaMap, path)}}`
|
|
131
|
-
: `{}`;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function generateArrayValues(
|
|
135
|
-
type: string,
|
|
136
|
-
parameterName: string,
|
|
137
|
-
schemaMap: Map<string, Schema>,
|
|
138
|
-
path: Set<string> = new Set(),
|
|
139
|
-
) {
|
|
140
|
-
let arrayType;
|
|
141
|
-
const schema = schemaMap.get(type) as ArraySchema;
|
|
142
|
-
if (schema && schema.items) {
|
|
143
|
-
arrayType = getAccurateTypeName(schema.items);
|
|
144
|
-
addToSchemaMap(schemaMap, schema.items);
|
|
145
|
-
} else if (isArrayObject(type)) {
|
|
146
|
-
arrayType = getArrayObjectType(type);
|
|
147
|
-
} else if (isNativeArray(type)) {
|
|
148
|
-
arrayType = getNativeArrayType(type);
|
|
149
|
-
}
|
|
150
|
-
const itemValue = arrayType
|
|
151
|
-
? generateParameterTypeValue(arrayType, parameterName, schemaMap, path)
|
|
152
|
-
: undefined;
|
|
153
|
-
return itemValue ? `[${itemValue}]` : `[]`;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function generateObjectValues(
|
|
157
|
-
type: string,
|
|
158
|
-
_parameterName: string,
|
|
159
|
-
schemaMap: Map<string, Schema>,
|
|
160
|
-
path: Set<string> = new Set(),
|
|
161
|
-
) {
|
|
162
|
-
if (path.has(type)) {
|
|
163
|
-
// skip generating if self referenced
|
|
164
|
-
return `{} as any /**FIXME */`;
|
|
165
|
-
}
|
|
166
|
-
path.add(type);
|
|
167
|
-
// Extract all properties from the schema
|
|
168
|
-
const allProperties = getAllProperties(schemaMap.get(type), schemaMap);
|
|
169
|
-
const values = extractObjectProperties(allProperties, schemaMap, path);
|
|
170
|
-
|
|
171
|
-
path.delete(type);
|
|
172
|
-
return `{${values.join(", ")}}`;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function getAllProperties(
|
|
176
|
-
schema?: ObjectSchema,
|
|
177
|
-
schemaMap: Map<string, Schema> = new Map(),
|
|
178
|
-
): Map<string, Schema> {
|
|
179
|
-
const propertiesMap: Map<string, Schema> = new Map();
|
|
180
|
-
if (!schema) {
|
|
181
|
-
return new Map();
|
|
182
|
-
}
|
|
183
|
-
getImmediateParentsNames(schema, [SchemaContext.Input])?.forEach((p) => {
|
|
184
|
-
const parentProperties = getAllProperties(schemaMap.get(p), schemaMap);
|
|
185
|
-
for (const prop of parentProperties.keys()) {
|
|
186
|
-
propertiesMap.set(prop, parentProperties.get(prop)!);
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
for (const prop in schema.properties) {
|
|
190
|
-
const propValue = schema.properties[prop];
|
|
191
|
-
if (propValue) {
|
|
192
|
-
propertiesMap.set(prop, propValue);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return propertiesMap;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
function extractObjectProperties(
|
|
199
|
-
properties: Map<string, Schema>,
|
|
200
|
-
schemaMap: Map<string, Schema> = new Map(),
|
|
201
|
-
path: Set<string> = new Set(),
|
|
202
|
-
) {
|
|
203
|
-
const values: string[] = [];
|
|
204
|
-
for (const name of properties.keys()) {
|
|
205
|
-
const property = properties.get(name);
|
|
206
|
-
if (!property || property.readOnly || property.type === "never") {
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
addToSchemaMap(schemaMap, property);
|
|
210
|
-
values.push(
|
|
211
|
-
`${name}: ` +
|
|
212
|
-
generateParameterTypeValue(getAccurateTypeName(property), name, schemaMap, path),
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
return values;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function getAccurateTypeName(schema: Schema) {
|
|
219
|
-
// For extensible enum, fallback to use the type
|
|
220
|
-
if (schema.typeName === "string" && schema.enum && schema.enum.length > 0) {
|
|
221
|
-
return schema.type;
|
|
222
|
-
}
|
|
223
|
-
return schema.typeName ?? schema.type;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
function addToSchemaMap(schemaMap: Map<string, Schema>, schema: Schema) {
|
|
227
|
-
const type = getAccurateTypeName(schema);
|
|
228
|
-
if (!type) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
if (!schemaMap.has(type) && !["string", "number", "boolean"].includes(schema.type)) {
|
|
232
|
-
schemaMap.set(type, schema);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { Project } from "ts-morph";
|
|
5
|
-
import { RLCModel } from "../interfaces.js";
|
|
6
|
-
|
|
7
|
-
export function buildApiExtractorConfig(model: RLCModel) {
|
|
8
|
-
const { packageDetails, isModularLibrary, generateTest, azureSdkForJs } = model.options || {};
|
|
9
|
-
const project = new Project();
|
|
10
|
-
|
|
11
|
-
let mainEntryPointFilePath = "dist/esm/index.d.ts";
|
|
12
|
-
|
|
13
|
-
if (model.options?.moduleKind === "cjs") {
|
|
14
|
-
mainEntryPointFilePath = `./types${generateTest || isModularLibrary ? "/src" : ""}/index.d.ts`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const config = azureSdkForJs
|
|
18
|
-
? {
|
|
19
|
-
extends: "../../../api-extractor-base.json",
|
|
20
|
-
}
|
|
21
|
-
: {
|
|
22
|
-
$schema:
|
|
23
|
-
"https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
24
|
-
mainEntryPointFilePath,
|
|
25
|
-
docModel: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
},
|
|
28
|
-
apiReport: {
|
|
29
|
-
enabled: true,
|
|
30
|
-
reportFolder: "./review",
|
|
31
|
-
},
|
|
32
|
-
dtsRollup: {
|
|
33
|
-
enabled: true,
|
|
34
|
-
untrimmedFilePath: "",
|
|
35
|
-
publicTrimmedFilePath: `dist/${
|
|
36
|
-
packageDetails?.nameWithoutScope ?? packageDetails?.name
|
|
37
|
-
}.d.ts`,
|
|
38
|
-
},
|
|
39
|
-
messages: {
|
|
40
|
-
tsdocMessageReporting: {
|
|
41
|
-
default: {
|
|
42
|
-
logLevel: "none",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
extractorMessageReporting: {
|
|
46
|
-
"ae-missing-release-tag": {
|
|
47
|
-
logLevel: "none",
|
|
48
|
-
},
|
|
49
|
-
"ae-unresolved-link": {
|
|
50
|
-
logLevel: "none",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
const filePath = "api-extractor.json";
|
|
57
|
-
const configFile = project.createSourceFile(filePath, JSON.stringify(config), {
|
|
58
|
-
overwrite: true,
|
|
59
|
-
});
|
|
60
|
-
return {
|
|
61
|
-
path: filePath,
|
|
62
|
-
content: configFile.getFullText(),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { Project } from "ts-morph";
|
|
5
|
-
import { RLCModel } from "../interfaces.js";
|
|
6
|
-
|
|
7
|
-
const eslintConfig = `import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
|
|
8
|
-
|
|
9
|
-
export default azsdkEslint.config([
|
|
10
|
-
{
|
|
11
|
-
rules: {
|
|
12
|
-
"@azure/azure-sdk/ts-modules-only-named": "warn",
|
|
13
|
-
"@azure/azure-sdk/ts-package-json-types": "warn",
|
|
14
|
-
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
|
|
15
|
-
"tsdoc/syntax": "warn"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]);
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
const esLintConfigEsm = `import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
|
|
22
|
-
|
|
23
|
-
export default azsdkEslint.config([
|
|
24
|
-
{
|
|
25
|
-
rules: {
|
|
26
|
-
"@azure/azure-sdk/ts-modules-only-named": "warn",
|
|
27
|
-
"@azure/azure-sdk/ts-package-json-types": "warn",
|
|
28
|
-
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
|
|
29
|
-
"@azure/azure-sdk/ts-package-json-files-required": "off",
|
|
30
|
-
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
|
|
31
|
-
"tsdoc/syntax": "warn"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
]);
|
|
35
|
-
`;
|
|
36
|
-
|
|
37
|
-
const esLintConfigEsmAzureSdk = `import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
|
|
38
|
-
|
|
39
|
-
export default [
|
|
40
|
-
...azsdkEslint.config([
|
|
41
|
-
{
|
|
42
|
-
rules: {
|
|
43
|
-
"@azure/azure-sdk/ts-modules-only-named": "warn",
|
|
44
|
-
"@azure/azure-sdk/ts-package-json-types": "warn",
|
|
45
|
-
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
|
|
46
|
-
"@azure/azure-sdk/ts-package-json-files-required": "off",
|
|
47
|
-
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
|
|
48
|
-
"tsdoc/syntax": "warn"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
]),
|
|
52
|
-
{
|
|
53
|
-
files: ["src/**/*.ts", "src/**/*.mts", "test/**/*.ts"],
|
|
54
|
-
languageOptions: {
|
|
55
|
-
parserOptions: {
|
|
56
|
-
projectService: false,
|
|
57
|
-
project: "./config/tsconfig.lint.json",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
];
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export function buildEsLintConfig(model: RLCModel) {
|
|
65
|
-
if (model.options?.flavor !== "azure") {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const project = new Project();
|
|
69
|
-
const filePath = "eslint.config.mjs";
|
|
70
|
-
|
|
71
|
-
let template: string;
|
|
72
|
-
if (model.options?.moduleKind === "esm") {
|
|
73
|
-
template = model.options?.azureSdkForJs ? esLintConfigEsmAzureSdk : esLintConfigEsm;
|
|
74
|
-
} else {
|
|
75
|
-
template = eslintConfig;
|
|
76
|
-
}
|
|
77
|
-
const configFile = project.createSourceFile("eslint.config.mjs", template, {
|
|
78
|
-
overwrite: true,
|
|
79
|
-
});
|
|
80
|
-
return {
|
|
81
|
-
path: filePath,
|
|
82
|
-
content: configFile.getFullText(),
|
|
83
|
-
};
|
|
84
|
-
}
|