@azure-tools/typespec-ts 0.54.0 → 0.54.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/CHANGELOG.md +34 -10
- package/README.md +0 -4
- 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/declaration.d.ts +1 -1
- package/dist/src/framework/declaration.d.ts.map +1 -1
- package/dist/src/framework/declaration.js +2 -4
- package/dist/src/framework/declaration.js.map +1 -1
- package/dist/src/framework/dependency.d.ts.map +1 -1
- package/dist/src/framework/hooks/binder.d.ts +1 -1
- package/dist/src/framework/hooks/binder.d.ts.map +1 -1
- package/dist/src/framework/hooks/binder.js +32 -41
- package/dist/src/framework/hooks/binder.js.map +1 -1
- package/dist/src/framework/hooks/sdk-types.d.ts +27 -0
- package/dist/src/framework/hooks/sdk-types.d.ts.map +1 -0
- package/dist/src/framework/hooks/sdk-types.js +158 -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 +1 -1
- package/dist/src/framework/load-static-helpers.d.ts.map +1 -1
- package/dist/src/framework/load-static-helpers.js +17 -31
- package/dist/src/framework/load-static-helpers.js.map +1 -1
- package/dist/src/framework/reference.d.ts.map +1 -1
- package/dist/src/framework/reference.js +2 -2
- package/dist/src/framework/reference.js.map +1 -1
- package/dist/src/framework/sample.js +8 -8
- package/dist/src/framework/sample.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +111 -100
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +1 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +140 -140
- package/dist/src/lib.js.map +1 -1
- package/dist/src/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 +864 -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/external-dependencies.js +54 -54
- 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/static-helpers-metadata.js +60 -60
- package/dist/src/modular/type-expressions/get-credential-expression.js +1 -1
- package/dist/src/modular/type-expressions/get-credential-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-enum-expression.d.ts +1 -1
- package/dist/src/modular/type-expressions/get-enum-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-enum-expression.js +1 -2
- package/dist/src/modular/type-expressions/get-enum-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-model-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-model-expression.js +10 -13
- package/dist/src/modular/type-expressions/get-model-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-nullable-expression.d.ts +1 -1
- package/dist/src/modular/type-expressions/get-nullable-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-nullable-expression.js +2 -3
- package/dist/src/modular/type-expressions/get-nullable-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-type-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-type-expression.js +5 -11
- package/dist/src/modular/type-expressions/get-type-expression.js.map +1 -1
- package/dist/src/modular/type-expressions/get-union-expression.d.ts +1 -1
- package/dist/src/modular/type-expressions/get-union-expression.d.ts.map +1 -1
- package/dist/src/modular/type-expressions/get-union-expression.js.map +1 -1
- package/dist/src/rlc-common/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/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 +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/metadata/utils.js +1 -2
- package/dist/src/rlc-common/metadata/utils.js.map +1 -1
- 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/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +1 -1
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/transform/transform-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.d.ts +1 -1
- package/dist/src/transform/transform.d.ts.map +1 -1
- package/dist/src/transform/transform.js +37 -36
- 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 +2 -2
- 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.js +2 -2
- package/dist/src/utils/resolve-project-root.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +44 -55
- package/src/context-manager.ts +101 -0
- package/src/framework/declaration.ts +18 -28
- package/src/framework/dependency.ts +1 -2
- package/src/framework/hooks/binder.ts +48 -121
- package/src/framework/hooks/sdk-types.ts +219 -0
- package/src/framework/hooks/use-dependencies.ts +16 -0
- package/src/framework/load-static-helpers.ts +28 -51
- package/src/framework/reference.ts +2 -5
- package/src/framework/sample.ts +9 -9
- package/src/index.ts +149 -189
- package/src/lib.ts +143 -158
- package/src/meta-tree.ts +8 -0
- 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-modular-options.ts +22 -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 +1096 -0
- package/src/modular/emit-samples.ts +675 -0
- package/src/modular/emit-tests.ts +194 -0
- package/src/modular/external-dependencies.ts +54 -54
- package/src/modular/helpers/classical-operation-helpers.ts +375 -0
- package/src/modular/helpers/client-helpers.ts +362 -0
- package/src/modular/helpers/client-option-helpers.ts +122 -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/static/rollup.test.config.js +11 -14
- package/src/modular/static/scripts/renameOutput.mjs +2 -2
- package/src/modular/static-helpers-metadata.ts +60 -60
- package/src/modular/type-expressions/get-credential-expression.ts +1 -1
- package/src/modular/type-expressions/get-enum-expression.ts +5 -10
- package/src/modular/type-expressions/get-model-expression.ts +13 -17
- package/src/modular/type-expressions/get-nullable-expression.ts +4 -5
- package/src/modular/type-expressions/get-type-expression.ts +8 -12
- package/src/modular/type-expressions/get-union-expression.ts +4 -4
- package/src/modular/type-expressions/utils.ts +1 -1
- package/src/rlc-common/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/api-version-util.ts +48 -0
- package/src/rlc-common/helpers/imports-util.ts +184 -0
- package/src/rlc-common/helpers/name-constructors.ts +110 -0
- package/src/rlc-common/helpers/name-utils.ts +296 -0
- package/src/rlc-common/helpers/operation-helpers.ts +138 -0
- package/src/rlc-common/helpers/path-utils.ts +10 -0
- package/src/rlc-common/helpers/schema-helpers.ts +50 -0
- package/src/rlc-common/helpers/shortcut-methods.ts +58 -0
- package/src/rlc-common/helpers/type-util.ts +166 -0
- package/src/rlc-common/helpers/value-generation-util.ts +234 -0
- package/src/rlc-common/index.ts +39 -39
- package/src/rlc-common/interfaces.ts +3 -11
- package/src/rlc-common/metadata/build-api-extractor-config.ts +64 -0
- package/src/rlc-common/metadata/build-changelog-file.ts +29 -0
- package/src/rlc-common/metadata/build-es-lint-config.ts +84 -0
- package/src/rlc-common/metadata/build-license-file.ts +33 -0
- 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/build-sample-env-file.ts +21 -0
- package/src/rlc-common/metadata/build-test-config.ts +72 -0
- package/src/rlc-common/metadata/build-ts-config.ts +219 -0
- package/src/rlc-common/metadata/build-vitest-config.ts +30 -0
- package/src/rlc-common/metadata/build-warp-config.ts +91 -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/metadata/package-json/package-common.ts +235 -0
- package/src/rlc-common/test/build-karma-config.ts +12 -0
- package/src/rlc-common/test/build-recorded-client.ts +18 -0
- package/src/rlc-common/test/build-sample-test.ts +15 -0
- package/src/rlc-common/test/build-snippets.ts +29 -0
- package/src/rlc-common/transform-sample-groups.ts +407 -0
- package/src/testing/index.ts +2 -5
- 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 +32 -44
- package/src/transform/transfrom-rlc-options.ts +461 -0
- package/src/utils/client-utils.ts +162 -0
- package/src/utils/credential-utils.ts +74 -0
- package/src/utils/cross-language-def.ts +66 -0
- package/src/utils/emit-util.ts +92 -0
- package/src/utils/file-system-utils.ts +69 -0
- package/src/utils/import-helper.ts +59 -0
- package/src/utils/interfaces.ts +2 -2
- package/src/utils/media-types.ts +150 -0
- package/src/utils/model-utils.ts +1727 -0
- package/src/utils/namespace-utils.ts +84 -0
- package/src/utils/operation-util.ts +763 -0
- package/src/utils/parameter-utils.ts +192 -0
- package/src/utils/resolve-project-root.ts +3 -3
- package/static/static-helpers/cloudSettingHelpers.ts +4 -6
- package/static/static-helpers/multipartHelpers.ts +3 -3
- package/static/static-helpers/pagingHelpers.ts +28 -63
- package/static/static-helpers/pollingHelpers.ts +16 -29
- package/static/static-helpers/serialization/build-multi-collection.ts +1 -4
- package/static/static-helpers/serialization/check-prop-undefined.ts +1 -4
- package/static/static-helpers/serialization/get-binary-response-browser.mts +3 -1
- package/static/static-helpers/serialization/get-binary-response.ts +2 -2
- package/static/static-helpers/serialization/get-binary-stream-response-browser.mts +1 -3
- package/static/static-helpers/serialization/get-binary-stream-response.ts +2 -4
- package/static/static-helpers/serialization/serialize-record.ts +1 -1
- package/static/static-helpers/serialization/serializers.ts +5 -7
- package/static/static-helpers/serialization/xml-helpers.ts +42 -90
- package/static/static-helpers/simplePollerHelpers.ts +10 -19
- package/static/static-helpers/storageCompatResponse.ts +10 -27
- package/static/static-helpers/urlTemplate.ts +4 -7
- package/static/test-helpers/recordedClient.ts +5 -10
- package/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 -161
- 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 -359
- 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 -50
- 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 -253
- 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 -15
- 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 -174
- 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 -94
- 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 -217
- 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 -293
- 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 -128
- 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 -882
- 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 -36
- 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 -508
- 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 -160
- 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 -267
- 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 -282
- 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 -651
- 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 -62
- 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 -2412
- 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 -96
- 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 -410
- 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 -454
- 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 -746
- 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 -153
- 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 -413
- 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 -174
- 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 -242
- 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 -224
- 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 -32
- 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 -451
- 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 -381
- 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 -62
- 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 -147
- 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 -53
- 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 -52
- 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 -45
- 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 -169
- 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 -63
- 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 -246
- 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 -119
- 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 -13
- 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 -12
- 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 -41
- 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 -167
- 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 -165
- 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 -56
- 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 -26
- 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 -82
- 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 -201
- 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 -426
- 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 -142
- 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 -17
- 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 -55
- 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 -28
- 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 -77
- 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 -176
- 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 -102
- 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 -183
- 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 -18
- 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 -15
- 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 -29
- 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 -317
- 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 -80
- 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 -77
- 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 -214
- 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 -106
- 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 -175
- 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 -202
- 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 -380
- 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 -132
- 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 -69
- 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 -63
- 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 -73
- package/dist/src/utils/emitUtil.js.map +0 -1
- package/dist/src/utils/fileSystemUtils.d.ts +0 -3
- package/dist/src/utils/fileSystemUtils.d.ts.map +0 -1
- package/dist/src/utils/fileSystemUtils.js +0 -40
- 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 -54
- 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 -136
- 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 -1577
- 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 -70
- 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 -568
- 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 -154
- package/dist/src/utils/parameterUtils.js.map +0 -1
- package/src/contextManager.ts +0 -104
- package/src/framework/hooks/sdkTypes.ts +0 -245
- package/src/framework/hooks/useDependencies.ts +0 -18
- package/src/metaTree.ts +0 -8
- package/src/modular/buildClassicalClient.ts +0 -511
- package/src/modular/buildClassicalOperationGroups.ts +0 -94
- package/src/modular/buildClientContext.ts +0 -354
- package/src/modular/buildModularOptions.ts +0 -23
- package/src/modular/buildOperations.ts +0 -275
- package/src/modular/buildProjectFiles.ts +0 -140
- package/src/modular/buildRestorePoller.ts +0 -261
- package/src/modular/buildRootIndex.ts +0 -481
- package/src/modular/buildSubpathIndex.ts +0 -175
- package/src/modular/emitLoggerFile.ts +0 -28
- package/src/modular/emitModels.ts +0 -1211
- package/src/modular/emitModelsOptions.ts +0 -62
- package/src/modular/emitSamples.ts +0 -763
- package/src/modular/emitTests.ts +0 -227
- package/src/modular/helpers/classicalOperationHelpers.ts +0 -428
- package/src/modular/helpers/clientHelpers.ts +0 -409
- package/src/modular/helpers/clientOptionHelpers.ts +0 -129
- package/src/modular/helpers/exampleValueHelpers.ts +0 -967
- package/src/modular/helpers/namingHelpers.ts +0 -100
- package/src/modular/helpers/operationHelpers.ts +0 -3362
- package/src/modular/helpers/typeHelpers.ts +0 -142
- package/src/modular/serialization/buildDeserializerFunction.ts +0 -598
- package/src/modular/serialization/buildSerializerFunction.ts +0 -654
- package/src/modular/serialization/buildXmlSerializerFunction.ts +0 -1030
- package/src/modular/serialization/serializeUtils.ts +0 -227
- package/src/rlc-common/buildClient.ts +0 -561
- package/src/rlc-common/buildClientDefinitions.ts +0 -278
- package/src/rlc-common/buildIndexFile.ts +0 -344
- package/src/rlc-common/buildIsUnexpectedHelper.ts +0 -255
- package/src/rlc-common/buildLogger.ts +0 -43
- package/src/rlc-common/buildMethodShortcuts.ts +0 -83
- package/src/rlc-common/buildObjectTypes.ts +0 -680
- package/src/rlc-common/buildPaginateHelper.ts +0 -34
- package/src/rlc-common/buildParameterTypes.ts +0 -575
- package/src/rlc-common/buildPollingHelper.ts +0 -83
- package/src/rlc-common/buildResponseTypes.ts +0 -203
- package/src/rlc-common/buildSamples.ts +0 -32
- package/src/rlc-common/buildSchemaType.ts +0 -81
- package/src/rlc-common/buildSerializeHelper.ts +0 -49
- package/src/rlc-common/buildTopLevelIndexFile.ts +0 -65
- package/src/rlc-common/helpers/apiVersionUtil.ts +0 -53
- package/src/rlc-common/helpers/importsUtil.ts +0 -187
- package/src/rlc-common/helpers/nameConstructors.ts +0 -144
- package/src/rlc-common/helpers/nameUtils.ts +0 -319
- package/src/rlc-common/helpers/operationHelpers.ts +0 -155
- package/src/rlc-common/helpers/pathUtils.ts +0 -15
- package/src/rlc-common/helpers/schemaHelpers.ts +0 -61
- package/src/rlc-common/helpers/shortcutMethods.ts +0 -67
- package/src/rlc-common/helpers/typeUtil.ts +0 -173
- package/src/rlc-common/helpers/valueGenerationUtil.ts +0 -257
- package/src/rlc-common/metadata/buildApiExtractorConfig.ts +0 -71
- package/src/rlc-common/metadata/buildChangelogFile.ts +0 -29
- package/src/rlc-common/metadata/buildESLintConfig.ts +0 -86
- package/src/rlc-common/metadata/buildLicenseFile.ts +0 -33
- package/src/rlc-common/metadata/buildPackageFile.ts +0 -250
- package/src/rlc-common/metadata/buildReadmeFile.ts +0 -528
- package/src/rlc-common/metadata/buildRollupConfig.ts +0 -150
- package/src/rlc-common/metadata/buildSampleEnvFile.ts +0 -22
- package/src/rlc-common/metadata/buildTestConfig.ts +0 -72
- package/src/rlc-common/metadata/buildTsConfig.ts +0 -222
- package/src/rlc-common/metadata/buildVitestConfig.ts +0 -36
- package/src/rlc-common/metadata/buildWarpConfig.ts +0 -94
- package/src/rlc-common/metadata/packageJson/azurePackageCommon.ts +0 -161
- package/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.ts +0 -220
- package/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.ts +0 -134
- package/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.ts +0 -70
- package/src/rlc-common/metadata/packageJson/packageCommon.ts +0 -255
- package/src/rlc-common/test/buildKarmaConfig.ts +0 -12
- 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 -35
- package/src/rlc-common/transformSampleGroups.ts +0 -458
- package/src/transform/transformApiVersionInfo.ts +0 -116
- package/src/transform/transformHelperFunctionDetails.ts +0 -100
- package/src/transform/transformParameters.ts +0 -371
- package/src/transform/transformPaths.ts +0 -174
- package/src/transform/transformResponses.ts +0 -244
- package/src/transform/transformSchemas.ts +0 -230
- package/src/transform/transformTelemetryInfo.ts +0 -39
- package/src/transform/transfromRLCOptions.ts +0 -524
- package/src/utils/clientUtils.ts +0 -181
- package/src/utils/credentialUtils.ts +0 -85
- package/src/utils/crossLanguageDef.ts +0 -85
- package/src/utils/emitUtil.ts +0 -98
- package/src/utils/fileSystemUtils.ts +0 -47
- package/src/utils/importHelper.ts +0 -64
- package/src/utils/mediaTypes.ts +0 -171
- package/src/utils/modelUtils.ts +0 -1946
- package/src/utils/namespaceUtils.ts +0 -100
- package/src/utils/operationUtil.ts +0 -855
- package/src/utils/parameterUtils.ts +0 -215
- /package/src/modular/helpers/{docsHelpers.ts → docs-helpers.ts} +0 -0
- /package/src/rlc-common/helpers/{packageUtil.ts → package-util.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
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { Schema } from "../interfaces.js";
|
|
5
|
+
|
|
6
|
+
export function isRecord(type: string) {
|
|
7
|
+
return /^Record<([a-zA-Z]+),(\s*)(?<type>.+)>$/.test(type);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function getRecordType(type: string) {
|
|
11
|
+
return /^Record<([a-zA-Z]+),(\s*)(?<type>.+)>$/.exec(type)?.groups?.["type"];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function isArray(type: string) {
|
|
15
|
+
return isArrayObject(type) || isNativeArray(type);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function isArrayObject(type: string) {
|
|
19
|
+
return /(^Array<(.+)>$)/g.test(type);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function getArrayObjectType(type: string) {
|
|
23
|
+
return /^Array<(?<type>.+)>$/g.exec(type)?.groups?.["type"];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function isNativeArray(type: string) {
|
|
27
|
+
return /(^.+)\[\]$/g.test(type);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function getNativeArrayType(type: string) {
|
|
31
|
+
return /(?<type>.+)\[\]/g.exec(type)?.groups?.["type"];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function isUnion(type: string) {
|
|
35
|
+
const members = type.split("|").map((m) => m.trim());
|
|
36
|
+
return members.length > 1 && !isStringLiteral(type) && !isRecord(type);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function getUnionType(type: string) {
|
|
40
|
+
const firstMember = type.split("|").map((m) => m.trim())[0];
|
|
41
|
+
if (firstMember === undefined) {
|
|
42
|
+
return type;
|
|
43
|
+
}
|
|
44
|
+
return leaveBracket(firstMember);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function leaveBracket(type: string) {
|
|
48
|
+
if (!type || type.length < 2) {
|
|
49
|
+
return type;
|
|
50
|
+
} else if (type.startsWith("(") && type.endsWith(")")) {
|
|
51
|
+
return type.slice(1, type.length - 1);
|
|
52
|
+
}
|
|
53
|
+
return type;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function leaveStringQuotes(str: string) {
|
|
57
|
+
if (isStringLiteral(str)) {
|
|
58
|
+
return str.slice(1, str.length - 1);
|
|
59
|
+
}
|
|
60
|
+
return str;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export enum TypeScriptType {
|
|
64
|
+
string,
|
|
65
|
+
date,
|
|
66
|
+
number,
|
|
67
|
+
boolean,
|
|
68
|
+
constant,
|
|
69
|
+
record,
|
|
70
|
+
array,
|
|
71
|
+
object,
|
|
72
|
+
union,
|
|
73
|
+
unknown,
|
|
74
|
+
enum,
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function toTypeScriptTypeFromSchema(schema: Schema): TypeScriptType | undefined {
|
|
78
|
+
schema.type = schema.type.trim();
|
|
79
|
+
if (
|
|
80
|
+
schema.type === "string" &&
|
|
81
|
+
schema.typeName === "Date | string" &&
|
|
82
|
+
schema.outputTypeName === "string"
|
|
83
|
+
) {
|
|
84
|
+
return TypeScriptType.date;
|
|
85
|
+
} else if (schema.enum && schema.enum.length > 0) {
|
|
86
|
+
if (schema.type === "union" || schema.type === "object") {
|
|
87
|
+
// Include both union and named union
|
|
88
|
+
return TypeScriptType.union;
|
|
89
|
+
} else {
|
|
90
|
+
// Include both extensible and fixed enum
|
|
91
|
+
return TypeScriptType.enum;
|
|
92
|
+
}
|
|
93
|
+
} else if (schema.isConstant === true || isConstant(schema.typeName ?? schema.type)) {
|
|
94
|
+
return TypeScriptType.constant;
|
|
95
|
+
} else if (schema.type === "number") {
|
|
96
|
+
return TypeScriptType.number;
|
|
97
|
+
} else if (schema.type === "boolean") {
|
|
98
|
+
return TypeScriptType.boolean;
|
|
99
|
+
} else if (schema.type === "string") {
|
|
100
|
+
return TypeScriptType.string;
|
|
101
|
+
} else if (schema.type === "unknown") {
|
|
102
|
+
return TypeScriptType.unknown;
|
|
103
|
+
} else if (schema.type === "dictionary") {
|
|
104
|
+
return TypeScriptType.record;
|
|
105
|
+
} else if (schema.type === "array") {
|
|
106
|
+
return TypeScriptType.array;
|
|
107
|
+
} else if (schema.type === "object") {
|
|
108
|
+
return TypeScriptType.object;
|
|
109
|
+
}
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function toTypeScriptTypeFromName(typeName: string): TypeScriptType | undefined {
|
|
114
|
+
typeName = typeName.trim();
|
|
115
|
+
if (typeName === "Date") {
|
|
116
|
+
return TypeScriptType.date;
|
|
117
|
+
} else if (typeName === "string") {
|
|
118
|
+
return TypeScriptType.string;
|
|
119
|
+
} else if (typeName === "number") {
|
|
120
|
+
return TypeScriptType.number;
|
|
121
|
+
} else if (typeName === "boolean") {
|
|
122
|
+
return TypeScriptType.boolean;
|
|
123
|
+
} else if (typeName === "unknown") {
|
|
124
|
+
return TypeScriptType.unknown;
|
|
125
|
+
} else if (isConstant(typeName)) {
|
|
126
|
+
return TypeScriptType.constant;
|
|
127
|
+
} else if (isRecord(typeName)) {
|
|
128
|
+
return TypeScriptType.record;
|
|
129
|
+
} else if (isArray(typeName)) {
|
|
130
|
+
return TypeScriptType.array;
|
|
131
|
+
} else if (isUnion(typeName)) {
|
|
132
|
+
return TypeScriptType.union;
|
|
133
|
+
}
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function isConstant(typeName: string) {
|
|
138
|
+
return (
|
|
139
|
+
["never", "null"].includes(typeName) ||
|
|
140
|
+
isBoolLiteral(typeName) ||
|
|
141
|
+
isNumericLiteral(typeName) ||
|
|
142
|
+
isStringLiteral(typeName)
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function isNumericLiteral(str: string) {
|
|
147
|
+
if (typeof str !== "string") return false;
|
|
148
|
+
return !isNaN(Number(str)) && !isNaN(parseFloat(str));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function isBoolLiteral(str: string) {
|
|
152
|
+
return str === "true" || str === "false";
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function isStringLiteral(type: string) {
|
|
156
|
+
if (type.length < 2) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
const first = type[0];
|
|
160
|
+
const lastPos = type.length - 1;
|
|
161
|
+
return (
|
|
162
|
+
first === type[lastPos] &&
|
|
163
|
+
(first === '"' || first === "'") &&
|
|
164
|
+
type.indexOf(first, 1) === lastPos
|
|
165
|
+
);
|
|
166
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { getImmediateParentsNames } from "../build-object-types.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 "./type-util.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
|
+
}
|
package/src/rlc-common/index.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
+
export * from "./build-client-definitions.js";
|
|
5
|
+
export * from "./build-client.js";
|
|
6
|
+
export * from "./build-index-file.js";
|
|
7
|
+
export * from "./build-is-unexpected-helper.js";
|
|
8
|
+
export * from "./build-logger.js";
|
|
9
|
+
export * from "./build-paginate-helper.js";
|
|
10
|
+
export * from "./build-parameter-types.js";
|
|
11
|
+
export * from "./build-polling-helper.js";
|
|
12
|
+
export * from "./build-response-types.js";
|
|
13
|
+
export * from "./build-samples.js";
|
|
14
|
+
export * from "./build-schema-type.js";
|
|
15
|
+
export * from "./build-serialize-helper.js";
|
|
16
|
+
export * from "./build-top-level-index-file.js";
|
|
17
|
+
export * from "./helpers/api-version-util.js";
|
|
18
|
+
export * from "./helpers/imports-util.js";
|
|
19
|
+
export * from "./helpers/name-constructors.js";
|
|
20
|
+
export * from "./helpers/name-utils.js";
|
|
21
|
+
export * from "./helpers/operation-helpers.js";
|
|
22
|
+
export * from "./helpers/package-util.js";
|
|
23
|
+
export * from "./helpers/schema-helpers.js";
|
|
24
|
+
export * from "./helpers/shortcut-methods.js";
|
|
25
|
+
export * from "./helpers/value-generation-util.js";
|
|
4
26
|
export * from "./interfaces.js";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./test/buildRecordedClient.js";
|
|
23
|
-
export * from "./test/buildSampleTest.js";
|
|
24
|
-
export * from "./test/buildSnippets.js";
|
|
25
|
-
export * from "./metadata/buildReadmeFile.js";
|
|
26
|
-
export * from "./metadata/buildApiExtractorConfig.js";
|
|
27
|
-
export * from "./metadata/buildPackageFile.js";
|
|
28
|
-
export * from "./metadata/buildRollupConfig.js";
|
|
29
|
-
export * from "./metadata/buildTsConfig.js";
|
|
30
|
-
export * from "./metadata/buildWarpConfig.js";
|
|
31
|
-
export * from "./metadata/buildESLintConfig.js";
|
|
32
|
-
export * from "./metadata/buildLicenseFile.js";
|
|
33
|
-
export * from "./metadata/buildChangelogFile.js";
|
|
34
|
-
export * from "./metadata/buildVitestConfig.js";
|
|
35
|
-
export * from "./metadata/buildSampleEnvFile.js";
|
|
36
|
-
export * from "./buildSerializeHelper.js";
|
|
37
|
-
export * from "./helpers/apiVersionUtil.js";
|
|
38
|
-
export * from "./buildLogger.js";
|
|
39
|
-
export * from "./buildSamples.js";
|
|
40
|
-
export * from "./transformSampleGroups.js";
|
|
41
|
-
export * from "./helpers/importsUtil.js";
|
|
42
|
-
export * from "./metadata/buildTestConfig.js";
|
|
43
|
-
export * from "./helpers/packageUtil.js";
|
|
27
|
+
export * from "./metadata/build-api-extractor-config.js";
|
|
28
|
+
export * from "./metadata/build-changelog-file.js";
|
|
29
|
+
export * from "./metadata/build-es-lint-config.js";
|
|
30
|
+
export * from "./metadata/build-license-file.js";
|
|
31
|
+
export * from "./metadata/build-package-file.js";
|
|
32
|
+
export * from "./metadata/build-readme-file.js";
|
|
33
|
+
export * from "./metadata/build-rollup-config.js";
|
|
34
|
+
export * from "./metadata/build-sample-env-file.js";
|
|
35
|
+
export * from "./metadata/build-test-config.js";
|
|
36
|
+
export * from "./metadata/build-ts-config.js";
|
|
37
|
+
export * from "./metadata/build-vitest-config.js";
|
|
38
|
+
export * from "./metadata/build-warp-config.js";
|
|
39
|
+
export * from "./test/build-karma-config.js";
|
|
40
|
+
export * from "./test/build-recorded-client.js";
|
|
41
|
+
export * from "./test/build-sample-test.js";
|
|
42
|
+
export * from "./test/build-snippets.js";
|
|
43
|
+
export * from "./transform-sample-groups.js";
|
|
@@ -115,12 +115,7 @@ export interface ApiVersionInfo {
|
|
|
115
115
|
required?: boolean;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export type ApiVersionPosition =
|
|
119
|
-
| "path"
|
|
120
|
-
| "query"
|
|
121
|
-
| "baseurl"
|
|
122
|
-
| "duplicate"
|
|
123
|
-
| "none";
|
|
118
|
+
export type ApiVersionPosition = "path" | "query" | "baseurl" | "duplicate" | "none";
|
|
124
119
|
export interface HelperFunctionDetails {
|
|
125
120
|
hasPaging?: boolean;
|
|
126
121
|
hasLongRunning?: boolean;
|
|
@@ -306,7 +301,7 @@ export enum SchemaContext {
|
|
|
306
301
|
/** Schema is used as an output from an operation. */
|
|
307
302
|
Output = "output",
|
|
308
303
|
/** Schema is used as an exception from an operation. */
|
|
309
|
-
Exception = "exception"
|
|
304
|
+
Exception = "exception",
|
|
310
305
|
}
|
|
311
306
|
|
|
312
307
|
export interface Schema {
|
|
@@ -429,10 +424,7 @@ export type ContentBuilder = {
|
|
|
429
424
|
|
|
430
425
|
export type SampleParameterPosition = "client" | "path" | "method";
|
|
431
426
|
|
|
432
|
-
export type SampleParameters = Record<
|
|
433
|
-
SampleParameterPosition,
|
|
434
|
-
SampleParameter[]
|
|
435
|
-
>;
|
|
427
|
+
export type SampleParameters = Record<SampleParameterPosition, SampleParameter[]>;
|
|
436
428
|
|
|
437
429
|
export interface SampleParameter {
|
|
438
430
|
name: string;
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { RLCModel } from "../interfaces.js";
|
|
5
|
+
|
|
6
|
+
function getPackageVersion(model: RLCModel): string {
|
|
7
|
+
return model.options?.packageDetails?.version ?? "1.0.0-beta.1";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function buildChangelogFile(model: RLCModel) {
|
|
11
|
+
const version = getPackageVersion(model);
|
|
12
|
+
const content = `# Release History
|
|
13
|
+
|
|
14
|
+
## ${version} (Unreleased)
|
|
15
|
+
|
|
16
|
+
### Features Added
|
|
17
|
+
|
|
18
|
+
### Breaking Changes
|
|
19
|
+
|
|
20
|
+
### Bugs Fixed
|
|
21
|
+
|
|
22
|
+
### Other Changes
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
path: "CHANGELOG.md",
|
|
27
|
+
content,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
}
|